stock PlayerIP(playerid), how to make?
#1

Hi, again a problem with a stock. This code:
pawn Код:
//OnPlayerConnect
if(!strcmp(PlayerIP(playerid), "127.0.0.1", true)){SetPlayerName(playerid, "[SX]Remi[A]");} //rule 606


//somewhere at the bottom
stock PlayerIP(playerid)
{
    new ip[16];
    GetPlayerIp(playerid, ip, sizeof(ip));
    return ip;
}
Errors:
Код:
L:\gamemodes\SX.pwn(606) : error 012: invalid function call, not a valid address
L:\gamemodes\SX.pwn(606) : warning 215: expression has no effect
L:\gamemodes\SX.pwn(606) : error 001: expected token: ";", but found ")"
L:\gamemodes\SX.pwn(606) : error 029: invalid expression, assumed zero
L:\gamemodes\SX.pwn(606) : fatal error 107: too many error messages on one line
How does this come?
Reply


Messages In This Thread
stock PlayerIP(playerid), how to make? - by Remi-X - 23.06.2009, 09:04
Re: stock PlayerIP(playerid), how to make? - by Grim_ - 23.06.2009, 09:06
Re: stock PlayerIP(playerid), how to make? - by MenaceX^ - 23.06.2009, 09:09
Re: stock PlayerIP(playerid), how to make? - by Grim_ - 23.06.2009, 09:10
Re: stock PlayerIP(playerid), how to make? - by Remi-X - 23.06.2009, 09:11
Re: stock PlayerIP(playerid), how to make? - by Grim_ - 23.06.2009, 09:12
Re: stock PlayerIP(playerid), how to make? - by James_Alex - 23.06.2009, 09:17
Re: stock PlayerIP(playerid), how to make? - by OmeRinG - 23.06.2009, 09:17
Re: stock PlayerIP(playerid), how to make? - by Grim_ - 23.06.2009, 09:19
Re: stock PlayerIP(playerid), how to make? - by Remi-X - 23.06.2009, 09:25

Forum Jump:


Users browsing this thread: 2 Guest(s)