Detect the type of an argument.
#2

pawn Код:
//To get a float:
if(tagof(getarg(index)) == tagof(Float:))
//To get a string:
else if(strlen(getarg(index)))
//Everything else
else
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)