multiple parameters using sscanf
#2

pawn Code:
new
     action[6], // store is 5 characters long (and the longest word), add another to make it big enough.
     item[64], //Assuming that the item parameter is going to be a string/name.
     amount //Assuming a number/integer.
;
//Template: sscanf(input_string, format/specifiers, output_variables in order of appearence in specifiers);
sscanf(params, "s[6]s[64]i", action, item, amount);
Hopefully this explains it well enough.
Reply


Messages In This Thread
multiple parameters using sscanf - by fordawinzz - 26.12.2011, 08:58
Re: multiple parameters using sscanf - by Ash. - 26.12.2011, 09:07
Re: multiple parameters using sscanf - by blewert - 26.12.2011, 09:14
Re: multiple parameters using sscanf - by fordawinzz - 26.12.2011, 09:14
Re: multiple parameters using sscanf - by zT KiNgKoNg - 28.07.2013, 07:23

Forum Jump:


Users browsing this thread: 2 Guest(s)