SA-MP Forums Archive
Invalid Expression, Assumed Zero. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Invalid Expression, Assumed Zero. (/showthread.php?tid=164180)



Invalid Expression, Assumed Zero. - Mike_Peterson - 30.07.2010

I got a debug of sa-mp with /w2 /v etc. but at aweaponnames[32] or sumthing it shows a full list of all the weapons and at the bottom there is } ;
now when i compile i get the error Invalid Expression, assumed zero and must be a constant expression; assumed zero, i tried to do } } ; this solved the 2nd error but i still get the invalid expression error, help?

This is the bottom of the script.

pawn Код:
{"Rocket Launcher"}, // 35
    {"Heat-Seeking Rocket Launcher"}, // 36
    {"Flamethrower"}, // 37
    {"Satchel Charge"}, // 39
    {"Detonator"}, // 40
    {"Spray Can"}, // 41
    {"Fire Extinguisher"}, // 42
    {"Camera"}, // 43
    {"Parachute"}, // 46
};



Re: Invalid Expression, Assumed Zero. - Mauzen - 30.07.2010

{"Parachute"},

You have a , after the last entry, so pawn expects another entry. Remove it and it should work.