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
Array index out of bounds.
Jefff
Banned
Posts: 2,593
Threads: 34
Joined: Dec 2007
#7
16.02.2017, 23:21
if there is no players online random(0) returns huge numbers
change to
pawn Код:
return
users
[
(
(
pl
<
2
)
?
0
:
random
(
pl
)
)
]
;
Find
Reply
«
Next Oldest
|
Next Newest
»
Messages In This Thread
Array index out of bounds.
- by
danielpalade
- 15.02.2017, 19:49
Re: Array index out of bounds.
- by
Rdx
- 15.02.2017, 20:15
Re: Array index out of bounds.
- by
Freedom.
- 15.02.2017, 21:04
Re: Array index out of bounds.
- by
danielpalade
- 15.02.2017, 21:16
Re: Array index out of bounds.
- by
danielpalade
- 16.02.2017, 22:55
Re: Array index out of bounds.
- by
JesterlJoker
- 16.02.2017, 23:01
Re: Array index out of bounds.
- by
Jefff
- 16.02.2017, 23:21
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