public OnPlayerDisconnect(playerid, reason)
{
new Country[256];
new IP[256];
new mess[256];
new
string[64],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
switch(reason)
{
case 0: format(mess,sizeof(mess),"%s left the server [ Country: %s | Ping: %i ]",GetPName(playerid),Country,IP,GetPlayerPing(playerid);
case 1: format(mess,sizeof(mess),"%s left the server [ Country: %s | Ping: %i ]",GetPName(playerid),Country,IP,GetPlayerPing(playerid);
case 2: format(mess,sizeof(mess),"%s left the server [ Country: %s | Ping: %i ]",GetPName(playerid),Country,IP,GetPlayerPing(playerid);
}
SendClientMessageToAll(COLOR_JOIN,string);
return 1;
}
C:\Users\richard\Desktop\samp 0.3 R4\filterscripts\IP.pwn(147) : error 001: expected token: ",", but found ";" C:\Users\richard\Desktop\samp 0.3 R4\filterscripts\IP.pwn(148) : error 001: expected token: ",", but found ";" C:\Users\richard\Desktop\samp 0.3 R4\filterscripts\IP.pwn(149) : error 001: expected token: ",", but found ";"
case 0: format(mess,sizeof(mess),"%s left the server [ Country: %s | Ping: %i ]",GetPName(playerid),Country,IP,GetPlayerPing(playerid);
case 1: format(mess,sizeof(mess),"%s left the server [ Country: %s | Ping: %i ]",GetPName(playerid),Country,IP,GetPlayerPing(playerid);
case 2: format(mess,sizeof(mess),"%s left the server [ Country: %s | Ping: %i ]",GetPName(playerid),Country,IP,GetPlayerPing(playerid);
Originally Posted by Ritchie999
pawn Код:
|
case 0: format(mess,sizeof(mess),"%s left the server [ Country: %s | Ping: %i ]",GetPName(playerid),Country,IP,GetPlayerPing(playerid));
case 1: format(mess,sizeof(mess),"%s left the server [ Country: %s | Ping: %i ]",GetPName(playerid),Country,IP,GetPlayerPing(playerid));
case 2: format(mess,sizeof(mess),"%s left the server [ Country: %s | Ping: %i ]",GetPName(playerid),Country,IP,GetPlayerPing(playerid));
Originally Posted by Don Correlli
Quote:
pawn Код:
|
case 0: format(mess,sizeof(mess),"%s left the server [ Country: %s | Ping: %i ]",GetPName(playerid),Country,IP,GetPlayerPing(playerid)) (Timed out)",name);
case 1: format(mess,sizeof(mess),"%s left the server [ Country: %s | Ping: %i ]",GetPName(playerid),Country,IP,GetPlayerPing(playerid)) (Leaving)",name);
case 2: format(mess,sizeof(mess),"%s left the server [ Country: %s | Ping: %i ]",GetPName(playerid),Country,IP,GetPlayerPing(playerid)) (Kicked/Banned)",name);
C:\Users\richard\Desktop\samp 0.3 R4\filterscripts\IP.pwn(147) : error 001: expected token: ";", but found "(" C:\Users\richard\Desktop\samp 0.3 R4\filterscripts\IP.pwn(147) : error 017: undefined symbol "Timed" C:\Users\richard\Desktop\samp 0.3 R4\filterscripts\IP.pwn(147) : error 017: undefined symbol "out" C:\Users\richard\Desktop\samp 0.3 R4\filterscripts\IP.pwn(147) : fatal error 107: too many error messages on one line
case 0: format(mess,sizeof(mess),"%s left the server [ Country: %s | Ping: %i ] (Timed out)",name,Country,GetPlayerPing(playerid));
case 1: format(mess,sizeof(mess),"%s left the server [ Country: %s | Ping: %i ] (Leaving)",name,Country,GetPlayerPing(playerid));
case 2: format(mess,sizeof(mess),"%s left the server [ Country: %s | Ping: %i ] (Kicked/Banned)",name,Country,GetPlayerPing(playerid));
Originally Posted by Ritchie999
I done that, compiles without errors
but when someone leaves the game it doesnt show a message it just shows a blank space |
Originally Posted by Don Correlli
Quote:
|
pawn Код:
|
SendClientMessageToAll(COLOR_JOIN,mess);