Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Threaded Mode
Help with SrciptinG!
RocketBoy
Big Clucker
Posts: 137
Threads: 26
Joined: Jan 2014
Reputation:
0
#1
11.08.2015, 12:02
Hi! Can somebody tell me a function which can count the number of players are registered?
For Example:-
+REP
Find
Reply
ZBits
Gangsta
Posts: 516
Threads: 77
Joined: Dec 2011
Reputation:
0
#2
11.08.2015, 12:05
What method are you using for storing data? MySQL or standard file system?
Find
Reply
ZBits
Gangsta
Posts: 516
Threads: 77
Joined: Dec 2011
Reputation:
0
#3
11.08.2015, 12:07
Use the COUNT() function if you're using MySQL.
Код:
SELECT COUNT(*) FROM YOUR_ACCOUNTS_TABLE
Find
Reply
RocketBoy
Big Clucker
Posts: 137
Threads: 26
Joined: Jan 2014
Reputation:
0
#4
11.08.2015, 12:11
We dont use mysql.
send me pawno code(FULL)
Find
Reply
dominik523
Gangsta
Posts: 843
Threads: 61
Joined: Feb 2013
Reputation:
0
#5
11.08.2015, 12:20
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.
Find
Reply
HBG
Little Clucker
Posts: 28
Threads: 2
Joined: Aug 2015
Reputation:
0
#6
11.08.2015, 12:20
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.
Find
Reply
RocketBoy
Big Clucker
Posts: 137
Threads: 26
Joined: Jan 2014
Reputation:
0
#7
11.08.2015, 12:34
I'm using standard
File system..
Find
Reply
HBG
Little Clucker
Posts: 28
Threads: 2
Joined: Aug 2015
Reputation:
0
#8
11.08.2015, 12:41
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.
Find
Reply
RocketBoy
Big Clucker
Posts: 137
Threads: 26
Joined: Jan 2014
Reputation:
0
#9
11.08.2015, 12:42
Code!!
Find
Reply
HBG
Little Clucker
Posts: 28
Threads: 2
Joined: Aug 2015
Reputation:
0
#10
11.08.2015, 12:50
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.
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 3 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help