13.02.2011, 18:21
Well think about what you're comparing for a second, look at this:
So you type "/v buy", then obviously params and buy match, so that if statement returns true, then it continues down into your sscanf check and sscanf says there's no second integer parameter, and it returns the message. So then you type "/v buy 50", then it goes to compare params and "buy" again, and it's no longer going to return true, because now params contains "buy 50".
So what can you do? Well actually you pretty much already have it solved, you just need to change one little thing:
Hope that explains it and helps.
pawn Код:
if(equal(params,"buy"))
So what can you do? Well actually you pretty much already have it solved, you just need to change one little thing:
pawn Код:
if(equal(choice,"buy"))