Counting....
#4

Minor mistake:
pawn Код:
new count[2];
Your variable was out of bounds.

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;
}
Reply


Messages In This Thread
Counting.... - by ColdXX - 22.09.2010, 17:21
Re: Counting.... - by Seven. - 22.09.2010, 17:26
Re: Counting.... - by ColdXX - 22.09.2010, 17:40
Re: Counting.... - by [XST]O_x - 22.09.2010, 17:52
Re: Counting.... - by ColdXX - 22.09.2010, 17:53
Re: Counting.... - by Conroy - 22.09.2010, 18:16

Forum Jump:


Users browsing this thread: 1 Guest(s)