Raised This Month: $ Target: $400
 0% 

error 008: must be a constant expression


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
l4ulwtlln
Member
Join Date: Aug 2007
Old 08-26-2007 , 01:51   error 008: must be a constant expression
Reply With Quote #1

wats wrong with this? basically i want to have it be dynamic thats why i wont have it as a global

this is just a small portion of the actually thing but it shows basically what i want

/home/groups/amxmodx/tmp3/textyYESGo.sma(14 -- 15) : error 008: must be a constant expression; assumed zero

1 Error.
Could not locate output file /home/groups/amxmodx/public_html/websc3/textyYESGo.amx (compile failed).
PHP Code:
#include <amxmodx>

#define MAX_ALLOWED 64

new const Sound_Test[4][MAX_ALLOWED][64]

new 
SoundNumber

public plugin_precache() {
    
register_plugin("","","")

    
SoundNumber 4

    Sound_Test
[SoundNumber] = {
        
"csound/1.wav"
        
"csound/2.wav"
        
"csound/3.wav"
        
"csound/4.wav"
    
}


l4ulwtlln 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 16:11.


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