Raised This Month: $ Target: $400
 0% 

random hud text


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 06-12-2014 , 06:35   Re: random hud text
Reply With Quote #2

What errors do you receive?

If I remember correctly random_num(a, b) returns a random number from a to b, including b in the range. So you will sometimes set randoms = MAX which will result in an index out of bounds error. Try using random_num(0, MAX - 1);
__________________
In Flames we trust!
Nextra is offline
 



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 09:37.


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