//Allocating memory for string1
alloc 1@ 512
0C11: memset 1@ 0 512
//Allocating memory for string2
alloc 2@ 512
0C11: memset 2@ 0 512
//After i store text in string 1@ (Read text from dialog or format my own) i try to reverse text
0C2D: strrev in 1@ out 2@
The strrev function randomly crashes my game while playing, and when you alt tab game when you return you also crash...
Is it just me or someone can confirm bug?
Anyway if someone could help me to extract 11 last characters from text... (Example: "Some static text XXXXXXXXXX" ) These static text is always the same and i can find it with strstr. I just need to extract 11 last characters into another string.
I tried reversing string, copying first 11 characters and reversing string again. Its working but strrev function just crashes my game randomly and on alt+tab/maximize. By the way, i do release memory, so its not memory leak (at least not on in my cleo script)
Any help is welcome. Fell free to answer in Russian i will understand.