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
Issue with an Array related to separating valid weapons from invalid ones
SickAttack
High-roller
Posts: 4,759
Threads: 33
Joined: Dec 2013
Reputation:
0
#4
26.03.2016, 19:45
I would preferably avoid the use of a loop by accessing the index directly. This can be achieved by placing all of the IDs in the array, but assigning -1 or 0 to the ones you want to classify as "invalid".
Find
Reply
«
Next Oldest
|
Next Newest
»
Messages In This Thread
Issue with an Array related to separating valid weapons from invalid ones
- by
DarkLored
- 26.03.2016, 18:41
Re: Issue with an Array related to separating valid weapons from invalid ones
- by
Mencent
- 26.03.2016, 18:47
Re: Issue with an Array related to separating valid weapons from invalid ones
- by
DarkLored
- 26.03.2016, 19:10
Re: Issue with an Array related to separating valid weapons from invalid ones
- by
SickAttack
- 26.03.2016, 19:45
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: 4 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help