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)
+--- Thread: Invalid expression, assumed zero (/showthread.php?tid=522474)



Invalid expression, assumed zero - friezakinght - 27.06.2014

What's wrong with the code?

pawn Код:
if(pickupid == AOD_Armory)
    {
        `ShowPlayerDialog(playerid, AOD_ARMORY_MENU, DIALOG_STYLE_LIST, "{FFFFFF}Gun Menu", "{FFFFFF}Handguns\nShotguns\nSub Machine Guns\nAssault Rifles\nRifles\nBody Armour", "Select", "Cancel");
    }
Код:
C:\Users\Cretu\Downloads\GTA SA\Server Fri CnR\gamemodes\FriCNR.pwn(5108) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re : Invalid expression, assumed zero - Chipardeur - 27.06.2014

What is "AOD_Armory" ?


Re: Invalid expression, assumed zero - friezakinght - 27.06.2014

I called it at the beginning of the code, it's a pickup
pawn Код:
new AOD_Armory;



Re: Invalid expression, assumed zero - friezakinght - 27.06.2014

Please help me...


Re: Invalid expression, assumed zero - Riwerry - 27.06.2014

I can see in beginning of ShowPlayerDialog this: '`'


Re: Invalid expression, assumed zero - friezakinght - 27.06.2014

Oh...damn...didn't see that...thank you for pointing it out.