Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Give Diffrent Random Numbers
#1
Reply

#2
how much is level.weaponpartspawn blabla?
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#3
The first index in an array is 0, so adjust your 'for' loops accordingly. Try it, if it doesn't work, do a desk check.
Reply

#4
Code:
while( var1 == var5 )
    var5 = randomInt( 3240204240 );
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#5
(08-23-2011, 13:13)iAegle Wrote:
Code:
while( var1 == var5 )
    var5 = randomInt( 3240204240 );

For example i want to create 8 random numbers. but in the end nooneshould be the same. so

Code:
while(var1 == var5)

wouldnt work
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] [SOURCE] Random Weapons. [HARD] Tony. 1 4,092 11-08-2013, 11:11
Last Post: Nekochan
  Help source random weapons [HARD] Tony. 4 4,686 11-08-2013, 05:25
Last Post: [HARD] Tony.
  Help choose 2 random players?(1 each team) 26hz 6 4,627 09-12-2013, 17:32
Last Post: Yamato
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 33,141 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
Exclamation [Request] Random Weapon At Spawn Scripts18 3 4,716 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Receiving a random primary & secondary DidUknowiPwn 5 4,384 07-22-2013, 09:47
Last Post: Yamato
  What script controls the "random" aspect to care packages? akillj 2 3,254 06-05-2013, 11:24
Last Post: akillj
  Random anims master131 14 10,761 05-24-2013, 09:45
Last Post: [HARD] Tony.
  [Request] Random player model hillbilly 1 2,735 05-12-2013, 08:30
Last Post: archit
  [Release] Random Functions 1.1 Yamato 22 13,308 04-20-2013, 10:13
Last Post: Dominator56

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.