Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Server
Server Support
Threaded Mode
RANDOM Numbers between 1-6
AwokenNeoX
Big Clucker
Posts: 96
Threads: 47
Joined: Oct 2012
Reputation:
0
#1
12.02.2014, 20:38
the code to generate a number between 1 and 6
Find
Reply
Jimmy0wns
Gangsta
Posts: 692
Threads: 69
Joined: Sep 2012
Reputation:
0
#2
12.02.2014, 20:41
pawn Код:
random
(
6
)
;
Find
Reply
AwokenNeoX
Big Clucker
Posts: 96
Threads: 47
Joined: Oct 2012
Reputation:
0
#3
12.02.2014, 20:44
Quote:
Originally Posted by
Jimmy0wns
pawn Код:
random
(
6
)
;
thank you
Find
Reply
Konstantinos
Spam Machine
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
#4
12.02.2014, 21:15
Quote:
Originally Posted by
Jimmy0wns
pawn Код:
random
(
6
)
;
That will return a number between 0-5 so you should add 1 on the result of it.
pawn Код:
random
(
6
)
+
1
the result will be now between 1-6.
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 Server
Server Support