19.12.2009, 15:30
I have downloaded GEO-IP and i am trying to make an exit message along with the entry message
so far this is what i have come up with
but i get these errors upon compile
for these lines
This is the whole script
Click Here
Does anyone know how to fix it so it works with "Left the Server" messages or am i just wasting my time?
so far this is what i have come up with
pawn Код:
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 ";"
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);
Click Here
Does anyone know how to fix it so it works with "Left the Server" messages or am i just wasting my time?