'constant expression; assumed zero' Any ideas?
#1

Im attempting to make a copy of the mod garage menu's, im using a simple enum with a multi dimentional array, i keep getting an error any help appriciated.

PHP код:
    enum cat {
        
text[40]
    }
    new 
cat:gShopItems[] = {
        {
"Paint Jobs"},
        {
"Colours"},
        {
"Exhausts"},
        {
"Front Bumper"},
        {
"Rear Bumper"},
        {
"Roof"},
        {
"Spoilers"},
        {
"Side Skirts"},
        {
"Wheels"},
        {
"Car Stereo"},
        {
"Hydraulics"},
        {
"Nitro"}
    }; 
I have not included entire array, simply the first bit that has the error, but will if needed.

{"Paint Jobs"}, gets me the following error "error 008: must be a constant expression; assumed zero"

Any help apriciated,
Thanks, Grimrandomer
Reply


Messages In This Thread
'constant expression; assumed zero' Any ideas? - by Grimrandomer - 07.03.2012, 13:24
Re: 'constant expression; assumed zero' Any ideas? - by [XST]O_x - 07.03.2012, 13:57
Re: 'constant expression; assumed zero' Any ideas? - by Grimrandomer - 07.03.2012, 13:58
Re: 'constant expression; assumed zero' Any ideas? - by Grimrandomer - 07.03.2012, 14:10
Re: 'constant expression; assumed zero' Any ideas? - by ikkentim - 07.03.2012, 15:05

Forum Jump:


Users browsing this thread: 1 Guest(s)