25.07.2009, 13:08
For my banning system, it saves a ban text file in Scriptfiles. everything works fine, except the unban. It's meant to save everything ban line in:
The first array is 500, which is the maximum amount of bans to save, the second is the lengh of it.
This Extracts each ban line to a different resave e.g. line 1 goes to resave[0], line 2 resave[1] etc...
But when i compile, i get this:
pawn Код:
new resave[500][128];
This Extracts each ban line to a different resave e.g. line 1 goes to resave[0], line 2 resave[1] etc...
pawn Код:
while(fread(bans,data,sizeof(data)))
{
if(makes sure the line isnt the player's who's being banned, but is a ban line){strmid(resave[i],data,0,sizeof(data));}
i++;
}
Код:
Header size: 3832 bytes Code size: 288304 bytes Data size: 345772 bytes Stack/heap size: 16384 bytes; estimated max. usage=65840 cells (263360 bytes) Total requirements: 654292 bytes