#1

Hello.

I've found this script to save a player's IP to a file:

Код:
new File:ip = fopen("ip.log", io_readwrite);
new string[100], pName[24], pIp[20];
if(ip)
 	{
GetPlayerName(playerid, pName, sizeof(pName)); 
GetPlayerIp(playerid, pIp, sizeof(pIp)); 
format(string, sizeof(string), "%s - %s \n", pIp, pName); 
fwrite(ip, string);
fclose(ip); 
}
But it only shows 1 player's name and IP. Does anyone know how to make it so it saves everyone's IP and name in a list?

Credits go to ZeroBurn who permits to code to be used by anyone.

Thank you in advance!
Reply


Messages In This Thread
IP - by [TouchX]Ash - 16.06.2009, 17:12
Re: IP - by Karlip - 16.06.2009, 17:15
Re: IP - by kaisersouse - 16.06.2009, 17:16
Re: IP - by [TouchX]Ash - 16.06.2009, 17:37
Re: IP - by Karlip - 16.06.2009, 17:39
Re: IP - by kaisersouse - 16.06.2009, 17:46
Re: IP - by [TouchX]Ash - 16.06.2009, 18:02
Re: IP - by SpiderPork - 16.06.2009, 18:06
Re: IP - by [TouchX]Ash - 16.06.2009, 18:10
Re: IP - by Karlip - 16.06.2009, 18:20

Forum Jump:


Users browsing this thread: 1 Guest(s)