15.01.2016, 19:02
How to count how many accounts reggistered I have in my scriptfiles ?
new RegisteredAccounts;
RegisteredAccounts ++;
//then tell him We have %d accounts recorded
//here make a check if the file exists or not, if it exists then set RegisteredAccounts = saved else then make a new file
new RegisterCounter; // on top of your script
// Put this on your finish registration part
RegisterCounter++;
// Part of the tutorial that tells us how many players have registered on the server
new message[128];
format(message,sizeof(message),"INFO: There are %d players registered on our server.",RegisterCounter);
SendClientMessage(playerid,-1,poruka);
well, I haven't used INI before so I can't tell you how to do the saving system for counting, but I can give you some tips.
1. Make a new variable called RegisteredAccounts and put it in the top of the script (after the includes of course) pawn Код:
pawn Код:
pawn Код:
|