Here is the code that checks our total distance:
I dont understand this:
The distance should be 1200 km but....
if my total distance is 100 km
100 / 1000 = 0.1 then if 0.1 mean 100 kilometers i have drive 200 000 km?!
[COLOR=#0000ff][B]if[/B][/COLOR] (NPL.CName == [COLOR=#0000ff]"XRG"[/COLOR] && Connections[[COLOR=#191970][B]GetConnIdx[/B][/COLOR](NPL.UCID)].TotalDistance / [COLOR=#00008b]1000[/COLOR] <= [COLOR=#00008b]199[/COLOR])
{
InSim.[COLOR=#191970][B]Send_MST_Message[/B][/COLOR]([COLOR=#0000ff]"/spec "[/COLOR] + Connections[[COLOR=#191970][B]GetConnIdx[/B][/COLOR](NPL.UCID)].Username);
[COLOR=#0000ff][B]if[/B][/COLOR] (Connections[[COLOR=#191970][B]GetConnIdx[/B][/COLOR](NPL.UCID)].MilesOrKilometers == [COLOR=#00008b]0[/COLOR])
{
InSim.[COLOR=#191970][B]Send_MTC_MessageToConnection[/B][/COLOR]([COLOR=#0000ff]"^6»^7 You need ^1200km ^7to drive a ^1"[/COLOR] + NPL.CName, NPL.UCID, [COLOR=#00008b]0[/COLOR]);
}
I dont understand this:
TotalDistance / [COLOR=#00008b]1000[/COLOR] <= [COLOR=#00008b]199[/COLOR])
The distance should be 1200 km but....
if my total distance is 100 km
100 / 1000 = 0.1 then if 0.1 mean 100 kilometers i have drive 200 000 km?!