[SNIPPET] Compare 2 Strings

:cmpString1andString2
{
    Example: 0AB1: call @cmpString1andString2 2 1@ 2@
    In: 0@, 1@ - strings
    Out: result 0/1
}
    for 7@ = 0 to 1024
    0A8D: 2@ = read_memory 0@ size 1 virtual_protect 0   
    0A8D: 3@ = read_memory 1@ size 1 virtual_protect 0
    0@ += 1
    1@ += 1
    if 003B: 2@ == 3@
    jf break
    if and
    2@ == 0
    3@ == 0
    then
        0485: return_true
  ret 0
    end
    end
059A: return_false
ret 0
 

a10210319

Active member
Joined
Mar 21, 2014
Messages
38
Reaction score
0
Re: Compare 2 Strings

I try to use, but failed
Can explain more specific methods of operation do?
 

J16D

Member
Joined
Jul 27, 2014
Messages
6
Reaction score
0
Re: Compare 2 Strings

uhm, I'm not sure if this works in multiplayer but
cleo 4 NewOpcodes 2.0 by DK22PAC  has this opcode;

Code:
0D49: 0@ = compare_strings "yes" "no" // IF and SET
 
Top