sscanf-->what to put in if statement
#3

http://ysi.wikia.com/wiki/Pluginscanf
You use it like:
pawn Код:
new my_integer,
      my_string[128]
;
if(sscanf(params, "us[128]", my_integer, my_string)) return USAGE;
That will check if you have a playerID/Name after your command and a string after that.
You can use the same things in CAPITAL to make it optional.
Like:
pawn Код:
if(sscanf(params, "uU", my_integer, my_integer2)) return USAGE;
Will make the my_integer2 parameter optional.
Reply


Messages In This Thread
sscanf-->what to put in if statement - by HurtLocker - 10.03.2013, 10:26
Re: sscanf-->what to put in if statement - by -CyRAX - 10.03.2013, 10:34
Re: sscanf-->what to put in if statement - by RajatPawar - 10.03.2013, 10:35
Re: sscanf-->what to put in if statement - by HurtLocker - 10.03.2013, 10:43
Re: sscanf-->what to put in if statement - by -CyRAX - 10.03.2013, 10:47
Re: sscanf-->what to put in if statement - by JaKe Elite - 10.03.2013, 10:52
Re: sscanf-->what to put in if statement - by HurtLocker - 10.03.2013, 11:03

Forum Jump:


Users browsing this thread: 2 Guest(s)