Wrong IP
#3

pawn Код:
new
    Player_Ip[ MAX_PLAYERS ][ 16 ]
;

// OnPlayerConnect:
GetPlayerIp( playerid, Player_Ip[ playerid ], 16 );

// Anywhere else you want to use the IP (such as passing it as an argument to format):
Player_Ip[ playerid ]
Everytime I used to get the IP at localhost, 255.255.255.255 was returned. I fixed the problem by getting the IP only ONCE and using it then
Reply


Messages In This Thread
Wrong IP - by x96664 - 17.11.2013, 16:50
AW: Wrong IP - by BigETI - 17.11.2013, 16:53
Re: Wrong IP - by Konstantinos - 17.11.2013, 16:55
Re: Wrong IP - by x96664 - 17.11.2013, 17:14
Re: Wrong IP - by Memoryz - 17.11.2013, 17:22
Re: Wrong IP - by x96664 - 17.11.2013, 17:26

Forum Jump:


Users browsing this thread: 1 Guest(s)