IRC OnPlayerDisconnect
#1

So,... When someone leaves the server, it doesn't show anything

Код:
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;
}
I don't get any errors or warnings in my script. Where could be the problem
Reply
#2

SendClientMessageToAll ? :/ I dunno , maybe thats it.
Reply
#3

Quote:
Originally Posted by Play3r❶❸❸❼
SendClientMessageToAll ? :/ I dunno , maybe thats it.
Nah. Next time read the topic, please.

It's for IRC, not ingame...
Reply
#4

Amm your string..
it should be [128] not max_players..
Reply
#5

Quote:
Originally Posted by GaGlets®
Amm your string..
it should be [128] not max_players..
It's not MAX_PLAYERS either....
Reply


Forum Jump:


Users browsing this thread: