Filewriting with getplayerip
#2

GetPlayerIp doesn't return an IP, it stores ip into the passed string, sot it should be like this:
pawn Код:
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
format(LineForFile, 100, "IP Adress %s\r\n",ip); // Construct the line: "IP adress"
    fwrite(PFile, LineForFile); // And save it to the file
Reply


Messages In This Thread
Filewriting with getplayerip - by SomebodyAndMe - 05.01.2012, 09:34
Re: Filewriting with getplayerip - by Norck - 05.01.2012, 09:43

Forum Jump:


Users browsing this thread: 1 Guest(s)