new string[128] = \"[ 1 ]\";
new string[128] = \"[ 27 ]\";new szam = 27;
new string[128],a = 0,b = 0,c = 0;format(string, sizeof(string), \"[ 1000, 24, 235 ]\");sscanf(string, \"P<[],>{s[2]}iii\", a, b, c);printf(\"Szám: %d - %d - %d\", a, b, c);
#include <a_samp>#include <sscanf2>public OnFilterScriptInit(){new string[128],a = 0,b = 0,c = 0;format(string, sizeof(string), \"[ 1000, 24, 235 ]\");printf(\"Format: %s\", string);sscanf(string, \"P<[],>{s[2]}iii\", a, b, c);printf(\"Szám: %d - %d - %d\", a, b, c);printf(\"\\n\\n\");format(string, sizeof(string), \"[ 24 ]\");printf(\"Format: %s\", string);sscanf(string, \"P<[],>{s[2]}i\", a);printf(\"Szám: %d\", a);return true;}