27.06.2013, 09:45
Hi, im trying to do checkpint again and i dont understand how to add 2nd checkpoint! I did like this
But i got 2 errors from it: error 010: invalid function or declaration ! Help pls!
Код:
public OnPlayerEnterCheckpoint(playerid) { if(IsPlayerInAnyVehicle(playerid)) DisablePlayerCheckpoint(playerid); SendClientMessage(playerid,COLOR_ORANGE,"Drive back to docks!"); SetPlayerCheckpoint(playerid,2462.9810,-2097.6760,13.5469, 5.0); } else if(IsPlayerInAnyVehicle(playerid)) { DisablePlayerCheckpoint(playerid); GivePlayerMoney(playerid,1000); SendClientMessage(playerid,COLOR_YELLOW,"You got 1000$ for delivering!"); return 1; }