05.01.2012, 09:43
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