Detect the type of an argument.
#7

Quote:
Originally Posted by Crayder
Посмотреть сообщение
pawn Код:
new arg = getarg(bleh);

if(tagof(arg) == tagof (Float:))
tagof is a built in function like sizeof, it has very specific specifications. I didn't know it didn't accept function, now I see why Slice always assigned his vars before testing them with tagof.




ALSO: It looks like you may be trying to make a format type of function, and trust me, you're doing it way wrong. You need to use emit calls and shit to get it to use the actual format specifiers.
I'm not trying to do that, I would use YSI\y_va instead with va_args<>


EDIT: tested the code now I get the following errors

PHP код:
sqltest.pwn(74) : error 035argument type mismatch (argument 1
Line of error:

PHP код:
else if(strlen(getarg(1))) 
Reply


Messages In This Thread
Detect the type of an argument. - by Magic_Time - 30.08.2015, 05:11
Re: Detect the type of an argument. - by Crayder - 30.08.2015, 05:19
Re: Detect the type of an argument. - by Magic_Time - 30.08.2015, 05:41
Re: Detect the type of an argument. - by Trollerz - 30.08.2015, 05:53
Re: Detect the type of an argument. - by Magic_Time - 30.08.2015, 05:55
Re: Detect the type of an argument. - by Crayder - 30.08.2015, 06:03
Re: Detect the type of an argument. - by Magic_Time - 30.08.2015, 06:16

Forum Jump:


Users browsing this thread: 1 Guest(s)