03.01.2010, 21:48
Can Someone help To Correct This Code?
i tryd to make andromanda enter with score but it not gives a function .
i tryd to make andromanda enter with score but it not gives a function .
Код:
public OnPlayerStateChange(playerid, newstate, oldstate){ if(newstate==PLAYER_STATE_DRIVER) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 592, GetPlayerScore(playerid) >= 500) { SendClientMessage(playerid, COLOR_YELLOW,"Welcome To Andromanda!"); } else { SendClientMessage(playerid, COLOR_YELLOW,"You Need Atleast 500 Score To Enter Andromanda!"); new string[128]; format(string, sizeof(string), "Your Flight Score is: %i",GetPlayerScore(playerid)); SendClientMessage(playerid, COLOR_YELLOW, string); } } return 1; }