30.03.2015, 02:25
Ajude-me
Код:
//============================================================================== public OnPlayerUpdate(playerid) { new string[32]; if(!IsPlayerConnected(playerid)) return 1; if(Vel[playerid] == true) { GetVehicleHealth(GetPlayerVehicleID(playerid),Vhealth); format(string, sizeof(string), "~r~~h~%d ~w~KM/H",GetVehicleSpeed(playerid),floatround(Vhealth)); TextDrawSetString(Velocimetro,string); if(IsPlayerInAnyVehicle(playerid)) { TextDrawShowForPlayer(playerid,Velocimetro); } else { TextDrawHideForPlayer(playerid,Velocimetro); } } if(GetPlayerVirtualWorld(playerid) == 0){ SetPlayerHealth(playerid,99999); SetPlayerArmour(playerid,99999); } } //==============================================================================
Код:
warning 209: function "OnPlayerUpdate" should return a value