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
Linear Mode
[HELP] How to check server empty?
Banditul18
Huge Clucker
Posts: 408
Threads: 40
Joined: Nov 2014
Reputation:
0
#4
22.07.2018, 18:22
Quote:
Код:
new mycount=0; for(new i=0; i<MAX_PLAYERS; i++) { if(myonlineplayers[i]==1) { mycount++; } }
Wut? In your example myonlineplayers keep the connected players already, why did you make this loop? Its useless and it have an error already, myonlineplayers its not an array and definetly its not a per player array.
Find
Reply
«
Next Oldest
|
Next Newest
»
Messages In This Thread
[HELP] How to check server empty?
- by
Charisma
- 22.07.2018, 07:21
Re: [HELP] How to check server empty?
- by
SyS
- 22.07.2018, 07:41
Re: [HELP] How to check server empty?
- by
grymtn
- 22.07.2018, 15:19
Re: [HELP] How to check server empty?
- by
Banditul18
- 22.07.2018, 18:22
Re: [HELP] How to check server empty?
- by
grymtn
- 22.07.2018, 19:44
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: 1 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help