28.10.2018, 07:49
pawn Код:
new id;
sscanf(inputtext[3], "p<]>d{s[50]}", id);
inputtext[3] will skip the first 3 characters and be "842] Infernus"
the trick is to split using ] delimiter "p<]>" instead of space, so it separates into two parts "842" and "Infernus"
"d" specifier will be for the first part and will be stored in `id` variable.
"{s[50]}" is called quiet string and will be ignored. Anything inside { } are not stored in variables.