CLEO Help [CLEO HELP] Why SB say Unknown directive cheat "OO"

CLEO related
Status
Not open for further replies.

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
Hi.

Why SB say Unknown directive cheat "OO"


Help fix this.​

Code:
{$CLEO .cs}
 thread "Ketum Invisible"
            
 0B2E: 10@ = read_samp_memory offset 0x4D10 size 2
 
 :A
 wait 0
 if
 cheat "OO"
 then
 Text "John Cena" 2322
 call @SendFakeSpecSync 3 0@ 1@ 2@
 0B2D: write_samp_memory offset 0x4D10 value 0xC390 size 2
 
 :B
 wait 0
 call @SendFakeSpecSync 3 0@ 1@ 2@
  
 
 
 if
 cheat "OO"
 then
 text "Randy Orton" 2323
 0B2D: write_samp_memory offset 0x4D10 value 10@ size 2
 jump @A
 end
 
 jump @B
 
 end
 
 jump @A
 
 
 
 
 :SendFakeSpecSync
 Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
 alloc 3@ 18
 0C0D: struct 3@ offset 0 size 2 = 0 // sLeftRightKeys;
 0C0D: struct 3@ offset 2 size 2 = 0 // sUpDownKeys;
 0C0D: struct 3@ offset 4 size 2 = 0 // sKeys;
 0C0D: struct 3@ offset 6 size 4 = 0@ //fPosition[X];
 0C0D: struct 3@ offset 10 size 4 = 1@ // fPosition[Y];
 0C0D: struct 3@ offset 14 size 4 = 2@ //fPosition[Z];
 0B3D: raknet 4@ = new_bit_stream
 0B40: raknet bit_stream 4@ write 212 type 0 size 1
 0B40: raknet bit_stream 4@ write 3@ type 5 size 18
 0B8B: raknet send bit_stream 4@                 
 0B3E: raknet delete_bit_stream 4@
 free 3@
 ret 0
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
hi, use "0ADC: test_cheat" instead of "cheat"

and maybe replace "Text" with "print" if it's problematic
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
monday said:
hi, use "0ADC:  test_cheat" instead of "cheat"

and maybe replace "Text" with "print" if it's problematic

@monday

now i got this:
Not enough actual parameters. Expected 1 params.

Code:
{$CLEO .cs}
thread "Ketum Invisible"
           
0B2E: 10@ = read_samp_memory offset 0x4D10 size 2

:A
wait 0
if
0ADC: test_cheat
then
0662: printstring "John Scena" 2322
call @SendFakeSpecSync 3 0@ 1@ 2@
0B2D: write_samp_memory offset 0x4D10 value 0xC390 size 2

:B
wait 0
call @SendFakeSpecSync 3 0@ 1@ 2@
 


if
0ADC: test_cheat
then
0662: printstring "Randy Orton" 2323
0B2D: write_samp_memory offset 0x4D10 value 10@ size 2
jump @A
end

jump @B

end

jump @A




:SendFakeSpecSync
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
alloc 3@ 18
0C0D: struct 3@ offset 0 size 2 = 0 // sLeftRightKeys;
0C0D: struct 3@ offset 2 size 2 = 0 // sUpDownKeys;
0C0D: struct 3@ offset 4 size 2 = 0 // sKeys;
0C0D: struct 3@ offset 6 size 4 = 0@ //fPosition[X];
0C0D: struct 3@ offset 10 size 4 = 1@ // fPosition[Y];
0C0D: struct 3@ offset 14 size 4 = 2@ //fPosition[Z];
0B3D: raknet 4@ = new_bit_stream
0B40: raknet bit_stream 4@ write 212 type 0 size 1
0B40: raknet bit_stream 4@ write 3@ type 5 size 18
0B8B: raknet send bit_stream 4@                 
0B3E: raknet delete_bit_stream 4@
free 3@
ret 0
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
idk if it works or anything but it compiles
Code:
{$CLEO .cs}
thread "Ketum Invisible"
           
0B2E: 10@ = read_samp_memory offset 0x4D10 size 2

:A
wait 0
if
0ADC: test_cheat "OO"
then
print "John Scena" 2322
call @SendFakeSpecSync 3 0@ 1@ 2@
0B2D: write_samp_memory offset 0x4D10 value 0xC390 size 2

:B
wait 0
call @SendFakeSpecSync 3 0@ 1@ 2@
 


if
0ADC: test_cheat "OO"
then
print "Randy Orton" 2323
0B2D: write_samp_memory offset 0x4D10 value 10@ size 2
jump @A
end

jump @B

end

jump @A




:SendFakeSpecSync
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
alloc 3@ 18
0C0D: struct 3@ offset 0 size 2 = 0 // sLeftRightKeys;
0C0D: struct 3@ offset 2 size 2 = 0 // sUpDownKeys;
0C0D: struct 3@ offset 4 size 2 = 0 // sKeys;
0C0D: struct 3@ offset 6 size 4 = 0@ //fPosition[X];
0C0D: struct 3@ offset 10 size 4 = 1@ // fPosition[Y];
0C0D: struct 3@ offset 14 size 4 = 2@ //fPosition[Z];
0B3D: raknet 4@ = new_bit_stream
0B40: raknet bit_stream 4@ write 212 type 0 size 1
0B40: raknet bit_stream 4@ write 3@ type 5 size 18
0B8B: raknet send bit_stream 4@                 
0B3E: raknet delete_bit_stream 4@
free 3@
ret 0
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
monday said:
idk if it works or anything but it compiles
Code:
{$CLEO .cs}
thread "Ketum Invisible"
           
0B2E: 10@ = read_samp_memory offset 0x4D10 size 2

:A
wait 0
if
0ADC: test_cheat "OO"
then
print "John Scena" 2322
call @SendFakeSpecSync 3 0@ 1@ 2@
0B2D: write_samp_memory offset 0x4D10 value 0xC390 size 2

:B
wait 0
call @SendFakeSpecSync 3 0@ 1@ 2@
 


if
0ADC: test_cheat "OO"
then
print "Randy Orton" 2323
0B2D: write_samp_memory offset 0x4D10 value 10@ size 2
jump @A
end

jump @B

end

jump @A




:SendFakeSpecSync
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
alloc 3@ 18
0C0D: struct 3@ offset 0 size 2 = 0 // sLeftRightKeys;
0C0D: struct 3@ offset 2 size 2 = 0 // sUpDownKeys;
0C0D: struct 3@ offset 4 size 2 = 0 // sKeys;
0C0D: struct 3@ offset 6 size 4 = 0@ //fPosition[X];
0C0D: struct 3@ offset 10 size 4 = 1@ // fPosition[Y];
0C0D: struct 3@ offset 14 size 4 = 2@ //fPosition[Z];
0B3D: raknet 4@ = new_bit_stream
0B40: raknet bit_stream 4@ write 212 type 0 size 1
0B40: raknet bit_stream 4@ write 3@ type 5 size 18
0B8B: raknet send bit_stream 4@                 
0B3E: raknet delete_bit_stream 4@
free 3@
ret 0

Sorry my mistake, I have not added this "00" in 0ADC: test_cheat.
Thanks for help.
 
Status
Not open for further replies.
Top