30.12.2014, 18:29
Hello guys, I have been working on this little bit for my admins to see, it shows the IP of the player who has joined the server but to other players it doesn't, this is what the code looks like
and I get this error
if you're able to help that would be great!
pawn Код:
new str[22 + MAX_PLAYER_NAME], ip[16];
GetPlayerName(playerid, pname, sizeof(pname));
format(str, sizeof(str), "%s has joined the server", pname);
SendClientMessageToAll(gray, str);
{
else
}
GetPlayerIp(ID,ip,sizeof(ip));
GetPlayerName(playerid, pname, sizeof(pname));
format(str, sizeof(str), "%s has joined the server (%s)", pname, ip);
SendMessageToAdmins(gray, str);
{
Quote:
C:\Users\BLACK\Desktop\Test\filterscripts\Accounts 0.8.pwn(273) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |