Quote:
Originally Posted by Konstantinos
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
|
Still 255.255.255.255, I used to get the IP when I connected and I sent an UPDATE query when I logged in (where I use to load player stats).
EDIT: I deleted my user account and the IP field is empty.