Quote:
Originally Posted by GazaWeSay
pawn Код:
public DashUpdate(playerid) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new vehid = GetPlayerVehicleID(playerid); new estring[7]; switch(EngineStatus[vehid]) { case 0: estring = "Off"; case 1: estring = "On"; default: estring = "Broken"; } new tstring[300]; format(tstring,sizeof(tstring),"Engine: %s~n~Fuel: %d~n~Speed: %d KM" , estring, Fuel[vehid], GetVehicleSpeed(vehid)); TextDrawSetString(Dash[playerid], tstring); TextDrawHideForPlayer(playerid,Dash[playerid]); TextDrawShowForPlayer(playerid,Dash[playerid]); } else { TextDrawHideForPlayer(playerid,Dash[playerid]); KillTimer(DashUpdate[playerid]); } return 1; }
|
If you can read the thread, it says the problem has been fixed.
And the code you posted would not work anyways.