PDA

View Full Version : Script problem with invalid expression.


Mustafa6155
01/12/2012, 09:27 AM
this is my line 35 -36

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 (c) 1997-2006, ITB CompuPhase


1 Error.


Thanks for reading.
I hope u can help me.

Mustafa6155
01/12/2012, 09:58 AM
Someone?

Konstantinos
01/12/2012, 10:06 AM
How did you define MONEY_BAG_MONEY and MONEY_BAG_MODE

Mustafa6155
01/12/2012, 10:16 AM
Yes here

#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

Konstantinos
01/12/2012, 10:17 AM
Change to
#define MONEY_BAG_MONEY 1

It is meant is positive number. The 1+ means for 1 and higher number

Mustafa6155
01/12/2012, 10:45 AM
Thanks:D