Hello guys !
I have a problem with a Km distance rule
Here my code
InSim.Send_BTN_CreateButton("^7" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance / 1000, Flags.ButtonStyles.ISB_C2, 4, 12, 145, 3, 162, (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID), 2, false);
This shows my driven KM´s so :
KM: 6
so now i want to have its so :
KM: 6,1
KM: 6,2
i have used the code so this time : TotalDistance / 1000d
thats is a big fail because the d stands for double......
So i dont want hes
thats show me now :
KM: 6,232
Can everywhere help me please ?
SORRY FOR MY VERY BAD ENGLISH
I have a problem with a Km distance rule
Here my code
InSim.Send_BTN_CreateButton("^7" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance / 1000, Flags.ButtonStyles.ISB_C2, 4, 12, 145, 3, 162, (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID), 2, false);
This shows my driven KM´s so :
KM: 6
so now i want to have its so :
KM: 6,1
KM: 6,2
i have used the code so this time : TotalDistance / 1000d
thats is a big fail because the d stands for double......
So i dont want hes
thats show me now :
KM: 6,232
Can everywhere help me please ?
SORRY FOR MY VERY BAD ENGLISH