Hi there (Again) i am coding a car contact sitem and i code this.
// Car contact between 2 cars
private void CON_CarContact(Packets.IS_CON CON)
{
try
{
{
MsgAll("^1> ^3Accident: " + Connections[GetConnIdx2(CON.B.PLID)].NoColPlyName + " ^4<CRASH> " + Connections[GetConnIdx2(CON.A.PLID)].NoColPlyName);
MsgAll("^1> ^3Speed: " + Connections[GetConnIdx2(CON.B.PLID)].CompCar.Speed + "^1 m/s" + " ^4<CRASH> " + Connections[GetConnIdx2(CON.A.PLID)].CompCar.Speed + "^1 m/s");
}
}
catch { }
}
the code work corectly but it shows me the speed in meters per seconds and i cat figure out to change it to kilometers per hour
i tryed to add this : var kmh = Conn.CompCar.Speed / 91; but didnt work
THX for your help
// Car contact between 2 cars
private void CON_CarContact(Packets.IS_CON CON)
{
try
{
{
MsgAll("^1> ^3Accident: " + Connections[GetConnIdx2(CON.B.PLID)].NoColPlyName + " ^4<CRASH> " + Connections[GetConnIdx2(CON.A.PLID)].NoColPlyName);
MsgAll("^1> ^3Speed: " + Connections[GetConnIdx2(CON.B.PLID)].CompCar.Speed + "^1 m/s" + " ^4<CRASH> " + Connections[GetConnIdx2(CON.A.PLID)].CompCar.Speed + "^1 m/s");
}
}
catch { }
}
the code work corectly but it shows me the speed in meters per seconds and i cat figure out to change it to kilometers per hour
i tryed to add this : var kmh = Conn.CompCar.Speed / 91; but didnt work
THX for your help