I want to extract just part of a string. The name in this case http://imgur.com/a/TgzoT (The one below is the texdraw I'm getting the string from) above is [font=Monaco, Consolas, Courier, monospace]0AD1[/font]
Is there any opcode like C++'s str.substr ? As I already have the begining (1@) and at the end (2@), it would be easy if something similar existed
I tried messing around with 0AD3 and 0AD4, but wasn't successful. I don't understand how they work
what I have at the moment
Is there any opcode like C++'s str.substr ? As I already have the begining (1@) and at the end (2@), it would be easy if something similar existed
I tried messing around with 0AD3 and 0AD4, but wasn't successful. I don't understand how they work
what I have at the moment
Code:
alloc 0@ = 1024
0C5A: samp textdraw 2053 get_string_to 0@
IF 0C18: 1@ = strstr string1 0@ string2 "to "
THEN
1@ += 2
0C18: 2@ = strstr string1 0@ string2 ":"
0AD1: "%s" 1000 1@