10.03.2013, 10:35
http://ysi.wikia.com/wiki/Pluginscanf
You use it like:
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:
Will make the my_integer2 parameter optional.
You use it like:
pawn Код:
new my_integer,
my_string[128]
;
if(sscanf(params, "us[128]", my_integer, my_string)) return USAGE;
You can use the same things in CAPITAL to make it optional.
Like:
pawn Код:
if(sscanf(params, "uU", my_integer, my_integer2)) return USAGE;