Hi all,

I want to create a file that contains part of a players ip. In this way I can check the players ip to a "banned" ip.
Code:
ipbanplayer(admin, reden,id, ip)
{
					wait 1;
					checkip = GetSubStr( ip, 0, 8 );
					file = openfile("bans/ip/"+checkip+".txt","write");
					if (file != -1)
					{
						fprintln(file, reden);
						fprintln(file, self.name);
						fprintln(file, admin.pers["loginname"]);
						fprintln(file, ip);
						closefile(file);
						admin iprintlnbold("Banned "+self.name+ "!\nIP: " + ip + " | Reason: " + reden);
					}
}
However, I get this weird error
Code:
WARNING: refusing to create relative path "/path/to/.callofduty2/test/scriptdata/bans/ip/217.103..txt"
How to solve this?