Script problem with invalid expression. - 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: Script problem with invalid expression. (
/showthread.php?tid=396530)
Script problem with invalid expression. -
Mustafa6155 - 01.12.2012
this is my line 35 -36
pawn Код:
new BagMoney = MONEY_BAG_MONEY;
new BagMode = MONEY_BAG_MODE;
Код:
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\filterscripts\wapendop.pwn(35) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Thanks for reading.
I hope u can help me.
Re: Script problem with invalid expression. -
Mustafa6155 - 01.12.2012
Someone?
Re: Script problem with invalid expression. -
Konstantinos - 01.12.2012
How did you define
MONEY_BAG_MONEY and
MONEY_BAG_MODE
Re: Script problem with invalid expression. -
Mustafa6155 - 01.12.2012
Yes here
pawn Код:
#define MONEY_BAG_MONEY +1 // -1 = Money bag ON with all player-money 0 = Money bag OFF 1+ = Money bag ON with given amount
#define MONEY_BAG_MODE 1 // 1 = Money comes from the killed player 0 = Money comes from the server
Re: Script problem with invalid expression. -
Konstantinos - 01.12.2012
Change to
pawn Код:
#define MONEY_BAG_MONEY 1
It is meant is positive number. The 1+ means for 1 and higher number
Re: Script problem with invalid expression. -
Mustafa6155 - 01.12.2012
Thanks