#1

Hey, i have this code 'OnPlayerDisConnect'

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);
}
But its shows ip 'IP = 255.255.255.255' but not showing my ip '196.96.64.1'

How can i fix it?
Reply


Messages In This Thread
IP - by Linus- - 22.01.2011, 13:10
Re: IP - by JaTochNietDan - 22.01.2011, 13:12
Re: IP - by Linus- - 22.01.2011, 13:13
Re: IP - by Finn - 22.01.2011, 13:13
Re: IP - by Mike Garber - 22.01.2011, 13:16
Re: IP - by Finn - 22.01.2011, 13:20
Re: IP - by Mike Garber - 22.01.2011, 13:22
Re: IP - by Finn - 22.01.2011, 13:29
Re: IP - by Linus- - 22.01.2011, 14:52
Re: IP - by Anthonyx3' - 22.01.2011, 14:53

Forum Jump:


Users browsing this thread: 2 Guest(s)