13.01.2014, 18:36
Can someone tell me why this speedometer code doesn't work??
I have it in a timer. Is supposed to show vehicle speed in km/h and current hp..but both doesnt update.
pawn Код:
if(IsPlayerInAnyVehicle(i))
{
new s[128],Float:health,vehicleid = GetPlayerVehicleID(i);
format(s, sizeof(s), "~g~%d ~w~km/h - ~g~%.2f ~w~hp", GetVehicleSpeed(vehicleid), health);
TextDrawSetString(KillsTxd[i], s);
TextDrawShowForPlayer(i, Speedo[0][i]);
TextDrawShowForPlayer(i, Speedo[1][i]);
}
else
{
TextDrawHideForPlayer(i, Speedo[0][i]);
TextDrawHideForPlayer(i, Speedo[1][i]);
}