Invalid Expression, Assumed Zero.
#1

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
};
Reply
#2

{"Parachute"},

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


Forum Jump:


Users browsing this thread: 2 Guest(s)