Parazitas God Staff member Joined Jan 2, 2017 Messages 3,315 Solutions 7 Reaction score 937 Location Lithuania Apr 29, 2019 #1 How to make opcode 0C17: 31@ = strlen 0@ work without SAMPFUNCS?
Opcode.eXe Expert Joined Feb 18, 2013 Messages 1,493 Reaction score 236 Location ( ͡° ͜ʖ ͡°) Apr 29, 2019 #2 Code: :strlen { Example: 0AB1: call @strlen 1 string 1@ return: 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@ Upvote 0 Downvote
Code: :strlen { Example: 0AB1: call @strlen 1 string 1@ return: 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@
Parazitas God Staff member Joined Jan 2, 2017 Messages 3,315 Solutions 7 Reaction score 937 Location Lithuania Apr 29, 2019 #3 Thx Upvote 0 Downvote