Raised This Month: $ Target: $400
 0% 

random_num


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 07-02-2009 , 05:51   random_num
Reply With Quote #1

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

i this using but this not works
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
shadow.hk
Senior Member
Join Date: Dec 2008
Location: WA, Australia
Old 07-02-2009 , 05:54   Re: random_num
Reply With Quote #2

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

i this using but this not works
radom_num?
shadow.hk is offline
Send a message via MSN to shadow.hk
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-02-2009 , 05:56   Re: random_num
Reply With Quote #3

It's random_num().
__________________
Arkshine is offline
Old 07-02-2009, 05:56
TheRadiance
This message has been deleted by TheRadiance. Reason: allready helped =)
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 07-02-2009 , 08:40   Re: random_num
Reply With Quote #4

Post example code..

Last edited by ~Ice*shOt; 07-02-2009 at 08:42.
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 07-02-2009 , 08:49   Re: random_num
Reply With Quote #5

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

PHP Code:
new iRandomNum random_num(0,3); 
__________________
minimiller is offline
Send a message via MSN to minimiller
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 07-02-2009 , 09:05   Re: random_num
Reply With Quote #6

Can give example for this?:
PlayerClass[id] == random_num(0, 3)
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 07-02-2009 , 09:07   Re: random_num
Reply With Quote #7

yes... jesus cry
__________________
xPaw is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-02-2009 , 11:21   Re: random_num
Reply With Quote #8

Quote:
Originally Posted by ~Ice*shOt View Post
Can give example for this?:
PlayerClass[id] == random_num(0, 3)
Example of what ? The code is right and there is no problems anymore...
__________________
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-02-2009 , 11:23   Re: random_num
Reply With Quote #9

Quote:
Originally Posted by ~Ice*shOt View Post
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)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 07-02-2009 , 12:25   Re: random_num
Reply With Quote #10

PlayerClass[id] == random_num (0, 3) okey, but i not have random classes.. what are problem ?
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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