[HELP] cq_action code Command is ignored

08/28/2012 17:52 chathouse#1
Code:
id      id_next id_nextfail   type   data    param
200	201	0	101	0	Would~you~buy~VIP~5~ticket?
201	202	0	102	0	Yes! 210
202	4000016	0	102	0	No,~I~want~it~later. 0
[COLOR="Red"]210	211	212	1001	0	bonuspoint < 10
211	0	0	126	0	You~not~have~enough~tokens.[/COLOR]
212	213	0	501	400100	
213	214	0	1001	0	bonuspoint += -10
214	215	0	1085	0	viplog/action_log 350,%user_name[%user_id],0,0,400100,0,0,0,0,0
215	0	0	126	0	Thank~you~for~purchasing~one~VIP5~ticket.
I have a problem with ID 210-211

The message would normally come: "You~not~have~enough~tokens." If you do not have enough tokens"

The problem is he ignores the command and you can still buy without Tokens.

Did I forget something in the code?

Thanks for the help
08/28/2012 21:13 Gekru#2
If I remember correctly bonuspoint doesn't have the < available to it. I believe the only ones assigned to that are += or >=
08/28/2012 23:17 magewarior2#3
try id fail 211 and next id 212 ... test it, if you have less than 10 bonus points, it should tell you ... you need more blabla bla :)