100% - Working without SAMPFUNCS
Example
PHP:
0AD3: 0@ = format "Hello World"
You wanna get "World"
0AB1: @GetLastCharacters 2 String 0@ Characters 5 rnt 1@
Snippet
PHP:
:GetLastCharacters
{
0AB1: @GetLastCharacters 2 String 0@ Characters 5 rnt 1@
}
0AB1: @strlen 1 String 0@ Lenght 2@
0062: 2@ -= 1@
005A: 0@ += 2@
0AB2: ret 1 0@
:strlen
{
Example: 0AB1: @strlen 1 string 1@ rtn 3@
In: 0@ - text;
Out: 1@ - size;
}
for 1@ = 0 to 1024
0A8D: 2@ = read_memory 0@ size 1 virtual_protect 0
if not 2@ == 0
jf break
0@ += 1
end
0AB2: ret 1 1@
Last edited: