14.02.2013, 19:09
When i add SendClientMessageToAll(-1, string); , like this:
Pawn can't compile and crashes o.o help me pls
pawn Код:
new
string[64],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
switch(reason)
{
case 0: format(string, sizeof string, "{FFFFFF}%s {CCCCCC}has left the server. .:{FFFFFF}(Timeout){CCCCCC}:.", name);
case 1: format(string, sizeof string, "{FFFFFF}%s {CCCCCC}has left the server. .:{FFFFFF}(Leaving){CCCCCC}:.", name);
case 2: format(string, sizeof string, "{FFFFFF}%s {CCCCCC}has left the server. .:{FFFFFF}(Kicked/Banned){CCCCCC}:.", name);
SendClientMessageToAll(-1, string);
}