06.07.2016, 14:13
Hello!
A callback must return a value (mostly the value is 1).
PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
if(onCheck[playerid])
{
GivePlayerMoney(playerid,5000);
DisablePlayerCheckpoint(playerid);
onCheck[playerid] = false;
SetPlayerPos(playerid,2024.8163,1344.3187,10.8203);
SetPlayerFacingAngle(playerid,10.8203);
SetPlayerColor(playerid,GREEN);
return 1;
}
return 1;
}