28.11.2011, 08:31
remove that macro!
or maybe just add in the format counter - 1?
pawn Код:
new
str[156],
counter
;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) return 0;
if(i == playerid) return 0;
counter++;
format(str, sizeof(str), "There is current %d players online in the server", counter);
SendClientMessage(playerid,COLOR_WHITE, str);
if(counter != playerid)
{
counter--;
return 1;
}
if(counter == 0)
{
SendClientMessage(playerid,COLOR_RED,"There is current no players online in the server");
return 1;
}
}