You are not logged in.
Pages: 1
Hi people, i new in the creations of cleo mods for gta sa.
I working in a mod, reducing damage of shots.
The problem is this:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013 {$CLEO .cs} //-------------MAIN--------------- thread "$PLAYER_ACTOR" :$PLAYER_ACTOR_37 // Error in compilation (for variable "$", but the mod is compiled originally so) wait 0 if Player.Defined($PLAYER_CHAR) else_jump @$PLAYER_ACTOR_37 if key_down 113 else_jump @$PLAYER_ACTOR_37 0@ = 22 0@ += 36 0@ *= 112 0@ += 13150904 0@ += 34 0A8D: 20@ = read_memory 0@ size 2 virtual_protect 0 0A8C: write_memory 0@ size 2 value 15 virtual_protect 0 1@ = 23 1@ += 36 1@ *= 112 1@ += 13150904 1@ += 34 0A8D: 21@ = read_memory 1@ size 2 virtual_protect 0 0A8C: write_memory 1@ size 2 value 20 virtual_protect 0 3@ = 25 3@ += 36 3@ *= 112 3@ += 13150904 3@ += 34 0A8D: 23@ = read_memory 3@ size 2 virtual_protect 0 0A8C: write_memory 3@ size 2 value 5 virtual_protect 0 4@ = 27 4@ += 36 4@ *= 112 4@ += 13150904 4@ += 34 0A8D: 24@ = read_memory 4@ size 2 virtual_protect 0 0A8C: write_memory 4@ size 2 value 7 virtual_protect 0 5@ = 29 5@ *= 112 5@ += 13150904 5@ += 34 0A8D: 25@ = read_memory 5@ size 2 virtual_protect 0 0A8C: write_memory 5@ size 2 value 9 virtual_protect 0 6@ = 30 6@ += 36 6@ *= 112 6@ += 13150904 6@ += 34 0A8D: 26@ = read_memory 6@ size 2 virtual_protect 0 0A8C: write_memory 6@ size 2 value 15 virtual_protect 0 7@ = 31 7@ += 36 7@ *= 112 7@ += 13150904 7@ += 34 0A8D: 27@ = read_memory 7@ size 2 virtual_protect 0 0A8C: write_memory 7@ size 2 value 15 virtual_protect 0 8@ = 33 8@ *= 112 8@ += 13150904 8@ += 34 0A8D: 28@ = read_memory 8@ size 2 virtual_protect 0 0A8C: write_memory 8@ size 2 value 30 virtual_protect 0 10@ = 28 10@ += 36 10@ *= 112 10@ += 13150904 10@ += 34 0A8D: 30@ = read_memory 10@ size 2 virtual_protect 0 0A8C: write_memory 10@ size 2 value 10 virtual_protect 0 11@ = 32 11@ += 36 11@ *= 112 11@ += 13150904 11@ += 34 0A8D: 31@ = read_memory 11@ size 2 virtual_protect 0 0A8C: write_memory 11@ size 2 value 10 virtual_protect 0 12@ = 37 12@ *= 112 12@ += 13150904 12@ += 34 0A8D: 32@ = read_memory 12@ size 2 virtual_protect 0 0A8C: write_memory 12@ size 2 value 25 virtual_protect 0 13@ = 38 13@ += 36 13@ *= 112 13@ += 13150904 13@ += 34 0A8D: 33@ = read_memory 13@ size 2 virtual_protect 0 0A8C: write_memory 13@ size 2 value 25 virtual_protect 0 14@ = 26 14@ += 36 14@ *= 112 14@ += 13150904 14@ += 34 0A8D: 34@ = read_memory 14@ size 2 virtual_protect 0 0A8C: write_memory 14@ size 2 value 6 virtual_protect 0 018C: play_sound 1085 at 0.0 0.0 0.0 wait 50 018C: play_sound 1085 at 0.0 0.0 0.0 wait 50 018C: play_sound 1085 at 0.0 0.0 0.0 00BC: show_text_highpriority GXT 'CHEAT1' time 1000 flag 1 // Cheat activated :$PLAYER_ACTOR_1043 // Same error. wait 0 if not key_down 113 else_jump @$PLAYER_ACTOR_1043 :$PLAYER_ACTOR_1062 // Same error. wait 0 if key_down 113 else_jump @$PLAYER_ACTOR_1062 0A8C: write_memory 0@ size 2 value 20@ virtual_protect 0 0A8C: write_memory 1@ size 2 value 21@ virtual_protect 0 0A8C: write_memory 2@ size 2 value 22@ virtual_protect 0 0A8C: write_memory 3@ size 2 value 23@ virtual_protect 0 0A8C: write_memory 4@ size 2 value 24@ virtual_protect 0 0A8C: write_memory 5@ size 2 value 25@ virtual_protect 0 0A8C: write_memory 6@ size 2 value 26@ virtual_protect 0 0A8C: write_memory 7@ size 2 value 27@ virtual_protect 0 0A8C: write_memory 8@ size 2 value 28@ virtual_protect 0 0A8C: write_memory 9@ size 2 value 29@ virtual_protect 0 0A8C: write_memory 10@ size 2 value 30@ virtual_protect 0 0A8C: write_memory 11@ size 2 value 31@ virtual_protect 0 0A8C: write_memory 12@ size 2 value 32@ virtual_protect 0 0A8C: write_memory 13@ size 2 value 33@ virtual_protect 0 0A8C: write_memory 14@ size 2 value 34@ virtual_protect 0 018C: play_sound 1084 at 0.0 0.0 0.0 wait 50 018C: play_sound 1084 at 0.0 0.0 0.0 wait 50 018C: play_sound 1084 at 0.0 0.0 0.0 00BC: show_text_highpriority GXT 'CHEAT8' time 1000 flag 1 // Cheat deactivated :$PLAYER_ACTOR_1345 // Same error. wait 0 if not key_down 113 else_jump @$PLAYER_ACTOR_1345 jump @$PLAYER_ACTOR_37
I explain : this is a cleo damage reducer for samp, my idea is eliminate the function of deagle (id 24) and sniper rifle (id 34).
I appreciate any help.
Thanks!
Offline
You need replace label names. From :$PLAYER_ACTOR to :PLAYER_ACTOR and @$PLAYER_ACTOR to @PLAYER_ACTOR. Rename thread name from "$PLAYER_ACTOR" to "PLAYER_ACTOR".
{$CLEO .cs} //-------------MAIN--------------- thread "PLAYER_ACTOR" // max. name lenght - 7, using next name - 'P_ACTOR' or similar names :PLAYER_ACTOR_37 wait 0 if Player.Defined($PLAYER_CHAR) else_jump @PLAYER_ACTOR_37 if 0AB0: key_pressed 113 else_jump @PLAYER_ACTOR_37 0@ = 22 0@ += 36 0@ *= 112 0@ += 13150904 0@ += 34 0A8D: 20@ = read_memory 0@ size 2 virtual_protect 0 0A8C: write_memory 0@ size 2 value 15 virtual_protect 0 1@ = 23 1@ += 36 1@ *= 112 1@ += 13150904 1@ += 34 0A8D: 21@ = read_memory 1@ size 2 virtual_protect 0 0A8C: write_memory 1@ size 2 value 20 virtual_protect 0 3@ = 25 3@ += 36 3@ *= 112 3@ += 13150904 3@ += 34 0A8D: 23@ = read_memory 3@ size 2 virtual_protect 0 0A8C: write_memory 3@ size 2 value 5 virtual_protect 0 4@ = 27 4@ += 36 4@ *= 112 4@ += 13150904 4@ += 34 0A8D: 24@ = read_memory 4@ size 2 virtual_protect 0 0A8C: write_memory 4@ size 2 value 7 virtual_protect 0 5@ = 29 5@ *= 112 5@ += 13150904 5@ += 34 0A8D: 25@ = read_memory 5@ size 2 virtual_protect 0 0A8C: write_memory 5@ size 2 value 9 virtual_protect 0 6@ = 30 6@ += 36 6@ *= 112 6@ += 13150904 6@ += 34 0A8D: 26@ = read_memory 6@ size 2 virtual_protect 0 0A8C: write_memory 6@ size 2 value 15 virtual_protect 0 7@ = 31 7@ += 36 7@ *= 112 7@ += 13150904 7@ += 34 0A8D: 27@ = read_memory 7@ size 2 virtual_protect 0 0A8C: write_memory 7@ size 2 value 15 virtual_protect 0 8@ = 33 8@ *= 112 8@ += 13150904 8@ += 34 0A8D: 28@ = read_memory 8@ size 2 virtual_protect 0 0A8C: write_memory 8@ size 2 value 30 virtual_protect 0 10@ = 28 10@ += 36 10@ *= 112 10@ += 13150904 10@ += 34 0A8D: 30@ = read_memory 10@ size 2 virtual_protect 0 0A8C: write_memory 10@ size 2 value 10 virtual_protect 0 11@ = 32 11@ += 36 11@ *= 112 11@ += 13150904 11@ += 34 0A8D: 31@ = read_memory 11@ size 2 virtual_protect 0 0A8C: write_memory 11@ size 2 value 10 virtual_protect 0 12@ = 37 12@ *= 112 12@ += 13150904 12@ += 34 0A8D: 32@ = read_memory 12@ size 2 virtual_protect 0 0A8C: write_memory 12@ size 2 value 25 virtual_protect 0 13@ = 38 13@ += 36 13@ *= 112 13@ += 13150904 13@ += 34 0A8D: 33@ = read_memory 13@ size 2 virtual_protect 0 0A8C: write_memory 13@ size 2 value 25 virtual_protect 0 14@ = 26 14@ += 36 14@ *= 112 14@ += 13150904 14@ += 34 0A8D: 15@ = read_memory 14@ size 2 virtual_protect 0 0A8C: write_memory 14@ size 2 value 6 virtual_protect 0 018C: play_sound 1085 at 0.0 0.0 0.0 wait 50 018C: play_sound 1085 at 0.0 0.0 0.0 wait 50 018C: play_sound 1085 at 0.0 0.0 0.0 00BC: show_text_highpriority GXT 'CHEAT1' time 1000 flag 1 // Cheat activated :PLAYER_ACTOR_1043 wait 0 if 8AB0: not key_pressed 113 else_jump @PLAYER_ACTOR_1043 :PLAYER_ACTOR_1062 wait 0 if 0AB0: key_pressed 113 else_jump @PLAYER_ACTOR_1062 0A8C: write_memory 0@ size 2 value 20@ virtual_protect 0 0A8C: write_memory 1@ size 2 value 21@ virtual_protect 0 0A8C: write_memory 2@ size 2 value 22@ virtual_protect 0 0A8C: write_memory 3@ size 2 value 23@ virtual_protect 0 0A8C: write_memory 4@ size 2 value 24@ virtual_protect 0 0A8C: write_memory 5@ size 2 value 25@ virtual_protect 0 0A8C: write_memory 6@ size 2 value 26@ virtual_protect 0 0A8C: write_memory 7@ size 2 value 27@ virtual_protect 0 0A8C: write_memory 8@ size 2 value 28@ virtual_protect 0 0A8C: write_memory 9@ size 2 value 29@ virtual_protect 0 0A8C: write_memory 10@ size 2 value 30@ virtual_protect 0 0A8C: write_memory 11@ size 2 value 31@ virtual_protect 0 0A8C: write_memory 12@ size 2 value 32@ virtual_protect 0 0A8C: write_memory 13@ size 2 value 33@ virtual_protect 0 0A8C: write_memory 14@ size 2 value 15@ virtual_protect 0 018C: play_sound 1084 at 0.0 0.0 0.0 wait 50 018C: play_sound 1084 at 0.0 0.0 0.0 wait 50 018C: play_sound 1084 at 0.0 0.0 0.0 00BC: show_text_highpriority GXT 'CHEAT8' time 1000 flag 1 // Cheat deactivated :PLAYER_ACTOR_1345 wait 0 if 8AB0: not key_pressed 113 else_jump @PLAYER_ACTOR_1345 jump @PLAYER_ACTOR_37
I rename variable 34@ to 15@. 34@ in CLEO-scripts not using, because max var. index is 33@.
P.S. Sorry for my bad English.
Last edited by wmysterio (01-04-2016 18:17)
Offline
Many thanks Mysterio, its perfect.
How is possible that script has been compiled with this label names? File is encripted or similar?
Thanks!
Last edited by scheissaufregister (05-04-2016 07:16)
Offline
The label is just a number - offset from the beginning of the script. See labels format in Sanny Builder(F10->Formats, group "Labels format").
Labels is generated on behalf of the thread. Name the thread can be any set of text.
Offline
Pages: 1