04.09.2009, 10:05
Hi,
i tried to check the ips of the players on login with their nicknames.
Thats all okay, but now i want to search the ip if another player comes online and if they have the same or is like that, i will get a adminwarning
IP Search and save is okay
new ip[16];
new angabe[64];
GetPlayerIp(playerid,ip,sizeof(ip));
format(angabe,sizeof(angabe),"Name: %s IP: %s\n",playername,ip);
new File:ftw=fopen("IPlog.txt",io_append);
fwrite(ftw,angabe);
fclose(ftw);
But now i must search it and also get out the name of it... Thats really hard. I dont know how to do it another way.
i tried to check the ips of the players on login with their nicknames.
Thats all okay, but now i want to search the ip if another player comes online and if they have the same or is like that, i will get a adminwarning
IP Search and save is okay
new ip[16];
new angabe[64];
GetPlayerIp(playerid,ip,sizeof(ip));
format(angabe,sizeof(angabe),"Name: %s IP: %s\n",playername,ip);
new File:ftw=fopen("IPlog.txt",io_append);
fwrite(ftw,angabe);
fclose(ftw);
But now i must search it and also get out the name of it... Thats really hard. I dont know how to do it another way.