CLEO Help Need help to code /spread, when i text it made a crash

CLEO related

Sathiel

Member
Joined
Nov 16, 2021
Messages
14
Reaction score
1
Location
Chile
Hello, im trying to made a cleo named spread run with a chat cmd, like /spread, i took part of the original code but adding some things like samp_register_client_command and a new loops
but it only generates a crash and it doesnt execute the code i will upload the cleo without my codes and the ones who i create tying to made run with commands
i hope u can let me learn
in some files y wont get a crash but it doesnt make the cleo start same. i only get the cleo saying its off

 

Attachments

  • 09 SPREAD.cs
    18.6 KB · Views: 6
  • 09 SPREADD.cs
    18.7 KB · Views: 1
  • spr34.cs
    18.1 KB · Views: 0
  • Spr34d.cs
    18.6 KB · Views: 3
  • SpreadCMD.cs
    18 KB · Views: 3

Krc

Active member
Joined
Mar 30, 2018
Messages
193
Reaction score
25
Location
Lithuania
Code:
{$CLEO .cs}
0000: NOP 
REPEAT
Wait 0
Until 0AFA: is_samp_structures_available 
0B34: "spread" @SPREAD

While True
Wait 0
END

:SPREAD
0B12: 0@ = 0@ XOR TRUE
If
0@ == TRUE
Then
0ACD: show_text_highpriority "SPREAD: ~G~ON" time 1000
0A8C: write_memory 7603296 size 1 value 144 virtual_protect 1 
else
0ACD: show_text_highpriority "SPREAD: ~R~OFF" time 1000
0A8C: write_memory 7603296 size 1 value 216 virtual_protect 1
end
CmdRet
 

Sathiel

Member
Joined
Nov 16, 2021
Messages
14
Reaction score
1
Location
Chile
Code:
{$CLEO .cs}
0000: NOP
REPEAT
Wait 0
Until 0AFA: is_samp_structures_available
0B34: "spread" @SPREAD

While True
Wait 0
END

:SPREAD
0B12: 0@ = 0@ XOR TRUE
If
0@ == TRUE
Then
0ACD: show_text_highpriority "SPREAD: ~G~ON" time 1000
0A8C: write_memory 7603296 size 1 value 144 virtual_protect 1
else
0ACD: show_text_highpriority "SPREAD: ~R~OFF" time 1000
0A8C: write_memory 7603296 size 1 value 216 virtual_protect 1
end
CmdRet

awsome, its work perfectly, and the code is more short than mine, great work!
 
Top