AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   random_num (https://forums.alliedmods.net/showthread.php?t=96217)

~Ice*shOt 07-02-2009 05:51

random_num
 
hi, what i doing bad for this radom_num ?:
PlayerClass[id] == radom_num(0, 3)

i this using but this not works

shadow.hk 07-02-2009 05:54

Re: random_num
 
Quote:

Originally Posted by ~Ice*shOt (Post 862357)
hi, what i doing bad for this radom_num ?:
PlayerClass[id] == radom_num(0, 3)

i this using but this not works

radom_num?

Arkshine 07-02-2009 05:56

Re: random_num
 
It's random_num().

~Ice*shOt 07-02-2009 08:40

Re: random_num
 
Post example code..

minimiller 07-02-2009 08:49

Re: random_num
 
PHP Code:

if(random_num(0,3) == 2)
{
    
//do stuff


PHP Code:

new iRandomNum random_num(0,3); 


~Ice*shOt 07-02-2009 09:05

Re: random_num
 
Can give example for this?:
PlayerClass[id] == random_num(0, 3)

xPaw 07-02-2009 09:07

Re: random_num
 
yes... jesus cry

Arkshine 07-02-2009 11:21

Re: random_num
 
Quote:

Originally Posted by ~Ice*shOt (Post 862458)
Can give example for this?:
PlayerClass[id] == random_num(0, 3)

Example of what ? The code is right and there is no problems anymore...

ConnorMcLeod 07-02-2009 11:23

Re: random_num
 
Quote:

Originally Posted by ~Ice*shOt (Post 862357)
hi, what i doing bad for this radom_num ?:
PlayerClass[id] == radom_num(0, 3)

i this using but this not works

You forgot the n
random_num(0, 3)

~Ice*shOt 07-02-2009 12:25

Re: random_num
 
PlayerClass[id] == random_num (0, 3) okey, but i not have random classes.. what are problem ?


All times are GMT -4. The time now is 15:26.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.