Is it Possible to Get Value From Strfind ?
#4

If you exactly know how the text is supposed to look, as you obviously do, it is possible. Although not with "strfind"
You can use the "strfind" function the way you do to find a starting position from where to search.
Код:
new start = strfind(text, "this is mean to id", true);
Now you can either use something like strmid to get the number out of the string, or call it directly like: text[position];

The "position" would be "start" + the length of the text from the start pos to the number.
e.g.
Код:
new position = start + strlen("this is mean to id ");
new id = text[position];
Reply


Messages In This Thread
Is it Possible to Get Value From Strfind ? - by colonel-top - 05.04.2016, 11:40
Re: Is it Possible to Get Value From Strfind ? - by AndySedeyn - 05.04.2016, 12:12
Re: Is it Possible to Get Value From Strfind ? - by introzen - 05.04.2016, 13:04
Re: Is it Possible to Get Value From Strfind ? - by Sascha - 05.04.2016, 13:09

Forum Jump:


Users browsing this thread: 1 Guest(s)