CLEO Help Help, this crashes my game

CLEO related
Status
Not open for further replies.

proteh

Member
Joined
Jun 18, 2013
Messages
21
Reaction score
0
I was trying to make a cleo mod to prevent de connecting delay from samp but it fulls my chatbox with warning messages and I don't know why.

This is the code.

{$VERSION 3.1.0027}
{$CLEO .cs}

0000: NOP
0001: wait 3000 ms
0AA2: 30@ = load_library "kernel32.dll" // IF and SET
0AA4: 31@ = get_proc_address "GetModuleHandleA" library 30@ // IF and SET
0AA7: call_function 31@ num_params 1 pop 0 "samp.dll" 32@
000A: 32@ += 2809909
0A8C: write_memory 32@ size 1 value 0 virtual_protect 1
 

xzytro

God
Joined
Apr 1, 2013
Messages
2,294
Reaction score
7
:surprised:
Try virtual_protect 0
and put
0A93: end_custom_thread under the line with write_memory. :computer_guy:
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
:face_palm: 32@ = timer, every milisecond it's increasing.

@xzytro, virtual_protect 1 because it's a read only adress.

Code:
{$CLEO}
0000: "SPRGFLD"
0662: "UGBASE.EU"

while true
wait 0
if
    0AA2: 30@ = load_library "samp.dll" 
then
    30@ += 0x2AE035
    0A8C: write_mem 30@ size 2 value 0x0000 vp 1
end
end
0A93: end_custom_thread
 
Status
Not open for further replies.
Top