22.01.2011, 13:10
Hey, i have this code 'OnPlayerDisConnect'
But its shows ip 'IP = 255.255.255.255' but not showing my ip '196.96.64.1'
How can i fix it?
pawn Код:
if (GetPVarInt(playerid,"Logged") == 1 && INI_Exist(pName(playerid)))
{
new plrIP[16];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
new PlayerFile[ 13 + MAX_PLAYER_NAME + 1];
format( PlayerFile , sizeof PlayerFile, "Accounts/%s.ini", Encode(pName(playerid)));
new INI:PlayerAcc = INI_Open(PlayerFile);
INI_WriteString( PlayerAcc, "IP",plrIP);
INI_Close(PlayerAcc);
}
How can i fix it?