27.06.2011, 08:06
Change this:
To:
From wiki sscanf: sscanf - wiki
pawn Код:
new id, string[256], pname[24], amount;
if (sscanf(params, "s", pname))
pawn Код:
new id, string[256], pname[24], amount;
if (sscanf(params, "s[24]i", pname, amount))
Код:
c - A character. d, i - An integer. h, x - A hex number (e.g. a colour). f - A float. s - A string. z - An optional string. pX - An additional delimiter where X is another character. '' - Encloses a litteral string to locate. u - User, takes a name, part of a name or an id and returns the id if they're connected.