Raised This Month: $ Target: $400
 0% 

[Help] Index out of bounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 01-11-2014 , 13:47   Re: [Help] Index out of bounds
Reply With Quote #1

Code:
random_num(0, sizeof g_sNewModel)
returns a number between 0 and 2 and g_sNewModel[2] is out of bounds.
Use random() instead.

Last edited by SpeeDeeR; 01-11-2014 at 13:50.
SpeeDeeR is offline
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 10:06.


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