09.04.2010, 14:25
So,... When someone leaves the server, it doesn't show anything 
I don't get any errors or warnings in my script. Where could be the problem

Код:
public OnPlayerDisconnect(playerid,reason)
{
new string[MAX_PLAYER_NAME+45],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
switch(reason)
{
case 0: format(string,sizeof string,"03*** %s (ID:%d) has left the server (Timeout)",name,playerid);
case 1: format(string,sizeof string,"03*** %s (ID:%d) has left the server (Left)",name,playerid);
case 2: format(string,sizeof string,"03*** %s (ID:%d) has left the server (Kicked/Banned)",name,playerid);
}
IRC_Say(gGroupID,IRC_CHANNEL,string);
return 1;
}

