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
how to find how many cars are on the server?
Urukhay
Gangsta
Posts: 639
Threads: 41
Joined: Sep 2013
Reputation:
0
#1
02.02.2014, 06:35
how to find how many cars are on the server?
Find
Reply
Ryan McDuff
Big Clucker
Posts: 189
Threads: 28
Joined: Jul 2012
Reputation:
0
#2
02.02.2014, 06:40
It all depends on what type of script you're using.
Find
Reply
CuervO
High-roller
Posts: 1,164
Threads: 20
Joined: Oct 2008
Reputation:
0
#3
02.02.2014, 07:01
Код:
new amount; for(new i = 0; i < MAX_VEHICLES; i ++) if(GetVehicleModel(i) != 0) amount ++;
amount will then be the amount of vehicles that are in the server.
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: 1 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help