Raised This Month: $ Target: $400
 0% 

dynamic allocated arrays possible?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ripcurl2
Member
Join Date: Oct 2004
Old 01-14-2005 , 17:15   dynamic allocated arrays possible?
Reply With Quote #1

another nice problem i have worked myself into
here the thing code:
Code:
.... new count = 0 .... count = dbi_field(result, 1) //count becomes the number in the field (about 3000) new iTempArray[count][32]

results in this compiler error:
amxxsc: sc1.c:1727: cell adjust_indirectiontables(int *, int, int, int, int, constvalue *): Assertion `dim[cur]>0' failed.

in essence: the compiler wants a statically assigned array like this:
Code:
new iTempArray[3000][32]

my question:
is there a way to make the compiler swallow dynamic (=size determined @ runtime) allocated arrays? (as done in the first code segment)
ripcurl2 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 19:28.


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