SA-MP Forums Archive
Help with SrciptinG! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with SrciptinG! (/showthread.php?tid=585148)



Help with SrciptinG! - RocketBoy - 11.08.2015

Hi! Can somebody tell me a function which can count the number of players are registered?
For Example:-
+REP


Re: Help with SrciptinG! - ZBits - 11.08.2015

What method are you using for storing data? MySQL or standard file system?


Re: Help with SrciptinG! - ZBits - 11.08.2015

Use the COUNT() function if you're using MySQL.

Код:
SELECT COUNT(*) FROM YOUR_ACCOUNTS_TABLE



Re: Help with SrciptinG! - RocketBoy - 11.08.2015

We dont use mysql.
send me pawno code(FULL)


Re: Help with SrciptinG! - dominik523 - 11.08.2015

Quote:
Originally Posted by RocketBoy
Посмотреть сообщение
We dont use mysql.
send me pawno code(FULL)
Why would you want a script with MySQL if you don't use it?
And you can't just go all over the forums and ask for full scripts.


Re: Help with SrciptinG! - HBG - 11.08.2015

Quote:
Originally Posted by RocketBoy
Посмотреть сообщение
We dont use mysql.
send me pawno code(FULL)
You're not helping us help you at all my friend.


Re: Help with SrciptinG! - RocketBoy - 11.08.2015

I'm using standard
File system..


Re: Help with SrciptinG! - HBG - 11.08.2015

Quote:
Originally Posted by RocketBoy
Посмотреть сообщение
I'm using standard
File system..
You are going to have to make a variable at the top of your script.

new registeredPlayers;

then increase it by one everytime a player registers

registeredPlayers += 1;

then save that number to a file.


Re: Help with SrciptinG! - RocketBoy - 11.08.2015

Code!!


Re: Help with SrciptinG! - HBG - 11.08.2015

Quote:
Originally Posted by RocketBoy
Посмотреть сообщение
Code!!
Sure send $20 USD to my paypal and I will be more then happy to give you the code.