Posts: 6,129
Threads: 36
Joined: Jan 2009
You can't just do that with the '!' operator, use isnull() if you have sscanf included.
Posts: 1,008
Threads: 101
Joined: Apr 2008
Reputation:
0
I think '!' means it thinks its correct, but not sure, Calgoone, Got an answer?
Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by -Rebel Son-
I think '!' means it thinks its correct, but not sure, Calgoone, Got an answer?
|
It means is NOT, isn't it relatively clear?
Posts: 1,008
Threads: 101
Joined: Apr 2008
Reputation:
0
well to me not really, since my brain is alittle on the broken side, but thanks for the word fella
Posts: 1,496
Threads: 78
Joined: Jun 2008
Reputation:
0
params[] is a kind of string(also known as array in PAWN) with unknown size(or auto determine).
You can't do !params since it is an array.
Using isnull macro will help you check if the first cell is null or not.
Posts: 37
Threads: 12
Joined: Mar 2011
Reputation:
0
Thanks leong124 and Calg00n. I got my code to work fine now.
Posts: 2,220
Threads: 154
Joined: Jul 2009
Reputation:
0
You can use isnull, but you can also use 'if(!strlen(params)) which may be a slightly faster (or slower, haven't tested it).
For multiple arguments processing use sscanf from ******.