12.09.2012, 06:35
hey guys i scripted this lil thingy . it compiles successfully but it doesn't work...how to fix that fucking bug ?
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { new playerState = GetPlayerState(playerid); if(playerState == PLAYER_STATE_DRIVER) { new Float: health; new veh; veh = GetPlayerVehicleID(playerid); if(GetVehicleHealth(veh,health) <100) { RepairVehicle(playerid); } } return 1; }