Posts: 3,351
Threads: 780
Joined: Jan 2010
Hi all guys,i wanna make a counter on server witch count the n° of total bans made.
How?
Any help?Thanks.
Posts: 1,363
Threads: 14
Joined: Apr 2009
Reputation:
0
using fread and fwrite in a single txt file
Posts: 148
Threads: 5
Joined: Jun 2011
pawn Код:
stock GetCheaters()
{
new File:file = fopen("cheaters.txt");
new string[8];
fread(file, string);
fclose(file);
return strval(string);
}
and the when you ban somone yo want it to do +1 to the numbers i guess you can do that if not i can possibly give the line
Posts: 3,351
Threads: 780
Joined: Jan 2010
No,i don't need to use fwrite/fopen.
It's possibile to do it with variables?
Like: when player get's banned, Cheaters++;
EDIT: Fixed.
Posts: 148
Threads: 5
Joined: Jun 2011
Edit Post removed as its fixed :P
i wrote it all up for you to