SA-MP Forums Archive
GetPlayerIp Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetPlayerIp Problem (/showthread.php?tid=280828)



GetPlayerIp Problem - Amel_PAtomAXx - 03.09.2011

i have problem with get player ip .
this is result:
pawn Код:
3. | 9. | 2011.  10 : 35  Connected Taylor_Griffin With IP: 49
and this is my code:
pawn Код:
new hour,mins,sec,year,mont,day,strl[256],ip[16];
    GetPlayerIp(playerid,ip,sizeof(ip));
    getdate(year,mont,day);
    gettime(hour,mins,sec);
    format(strl,sizeof(strl),"%d. | %d. | %d.  %d : %d  Connected %s With IP: %d",day,mont,year,hour,mins,name,ip);
    CONNECT(strl);



Re: GetPlayerIp Problem - Amel_PAtomAXx - 03.09.2011

ty