Raised This Month: $ Target: $400
 0% 

052 - multi-dimensional arrays must be fully initialized


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 01-05-2014 , 04:22   Re: 052 - multi-dimensional arrays must be fully initialized
Reply With Quote #5

nameList[random_num(0,MAXNAMES)]
->
nameList[random(sizeof nameList)]
By making that change you don't need MAXNAMES at all. Which would make it a lot easier to edit.

Make a dynamic array. (Look in cellarray.inc)
Load the names into it from the ini.
Done.
__________________
Black Rose 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 10:12.


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