SA-MP Forums Archive
Need INI code for ip - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need INI code for ip (/showthread.php?tid=276357)



Need INI code for ip - Admigo - 13.08.2011

Heey guys.
I want to save the ip from players but i dont know how.
I have this:
Код:
new plrIP[16];
INI_WriteInt(File,"Ip",GetPlayerIp(playerid, plrIP, sizeof(plrIP)));
But this doesnt work.
I dont get a ip i just get a number.


Re: Need INI code for ip - Incubator - 13.08.2011

Код:
new plrIP[16];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
INI_WriteString(File,"Ip",plrIP);



Re: Need INI code for ip - Admigo - 13.08.2011

Quote:
Originally Posted by Incubator
Посмотреть сообщение
Код:
new plrIP[16];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
INI_WriteString(File,"Ip",plrIP);
OMG Worked,Thanks dude!