0xf0rd
Active member
- Joined
- Jun 20, 2014
- Messages
- 68
- Reaction score
- 1
Hello,
So I decided to start learning CLEO, I am writing a basic script that will turn on/off something when the user presses a key on the keyboard. However, the code compiles fine but does not run. Could anyone experienced with CLEO scripting tells me why my code is not running?
Oh by the way, I don't wanna use SAMPFunctions just yet.
So I decided to start learning CLEO, I am writing a basic script that will turn on/off something when the user presses a key on the keyboard. However, the code compiles fine but does not run. Could anyone experienced with CLEO scripting tells me why my code is not running?
Code:
{$CLEO .cs}
:MAIN
03A4: name_thread "MAIN"
wait 1000
if
0AA2: 1@ = load_library "kernel32.dll"
jf @END_MAIN
if
0AA4: 30@ = get_proc_address "GetModuleHandleA" library 1@
jf @END_MAIN
0AA7: call_function 30@ num_params 1 pop 0 "samp.dll" 0@
if
0@ > 0
jf @END_MAIN
:GETINPUT
wait 0
if or
0AB0: 107
0AB0: 109
jf @GETINPUT
:END_MAIN
0A93: end_custom_thread
return
Oh by the way, I don't wanna use SAMPFunctions just yet.