20.05.2016, 16:24
Код:
new str[5], id; new string[58] = "Lottery ID: 492 | Started By: Forum_Samp | Date: 11/22/33"; new pos = strfind(string, " |"); strmid(str, string, 12, pos); id = strval(str); printf("ID: %i", id);
EDIT: Konstantinos already posted, didn't refresh the page.
I'm not sure if there's a huge speed difference to be honest.
(I know sscanf is going to be faster, I don't know by how much though)
EDIT 2: The difference really started showing when it ran more than 10000000 times.