22.09.2010, 17:52
Minor mistake:
Your variable was out of bounds.
And it can be done simply just:
pawn Код:
new count[2];
And it can be done simply just:
pawn Код:
new count = 0,string[32];
public OnPlayerEnterCheckpoint(playerid)
{
new n[MAX_PLAYER_NAME]; GetPlayerName(playerid,n,sizeof(n));
count++;
format(string,sizeof(string),"\"%s\" has entered the %d checkpoint, %d left.",n,count,4-count);
SendClientMessageToAll(color,string);
return 1;
}