SA-MP Forums Archive
getarg() a string, integer or float - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: getarg() a string, integer or float (/showthread.php?tid=533653)



getarg() a string, integer or float - Babel - 25.08.2014

Hi, i'm trying to do a command of that kind :

pawn Код:
MyCommand({Float,_}:...)
but I don't know how to detect if an argument is a string, a float or an integer?


Re: getarg() a string, integer or float - MicroD - 25.08.2014

I highly recommend you using y_va, makes job so much easier.
http://ysi.wikia.com/wiki/Library:YSI/y_va
Download: https://sampforum.blast.hk/showthread.php?tid=321092