19.09.2012, 17:00
strfind returns the position where the match is found, so:
... would print 4.
So you can simply check if the return value is below your end position.
// Edit: Or maybe you mean what Vince posted. Hopefully either response is useful!
pawn Код:
string = "123456789";
new pos = strfind(string, "5", true);
printf("%d", pos);
So you can simply check if the return value is below your end position.
// Edit: Or maybe you mean what Vince posted. Hopefully either response is useful!