CLEO Help Crash my code coordinates

CLEO related
Status
Not open for further replies.
N

Natso

Guest
Code:
{$CLEO .cs}
0000:
wait 3000
0B34: samp register_client_command "TA" to_label @TA

:TA 
wait 0 
   SAMP.IsCommandTyped(0@)
if 
0AD4: 30@ = scan_string 0@ format "%f %f %f" 1@ 2@ 3@  
jf @TA_1148 
Actor.StorePos($PLAYER_ACTOR, 9@, 10@, 11@)
Actor.PutAt($PLAYER_ACTOR, 1@, 2@, 3@)

:TA_1148
SAMP.CmdRet
This my frist cleo , it make player teleport to coordinates . but it not working
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,125
Reaction score
149
hi, the command is registered to the main label and there's no instruction after it reaches the end, that could be the reason why it's not working.
Code:
{$CLEO .cs}
0000:
wait 3000
0B34: samp register_client_command "TA" to_label @TA

:MainLoop
wait 0
//the script will be running here all the time, when you send the command it will jump at :TA label and return here again after reaching SAMP.CmdRet()
jump @MainLoop

:TA 
wait 0 
   SAMP.IsCommandTyped(0@)
if 
0AD4: 30@ = scan_string 0@ format "%f %f %f" 1@ 2@ 3@  
then
Actor.StorePos($PLAYER_ACTOR, 9@, 10@, 11@)
Actor.PutAt($PLAYER_ACTOR, 1@, 2@, 3@)
end
SAMP.CmdRet
 
N

Natso

Guest
This cleo of Henry , but i when i edit it , [TP coord] to [tele coord] it crash my game or all script working , i dont know why  :eek:hgodwhy:
 

Attachments

  • hii.cs
    24.6 KB · Views: 22

Shakira

Active member
Joined
Jul 11, 2014
Messages
191
Reaction score
0
Natso said:
This cleo of Henry , but i when i edit it , [TP coord] to [tele coord] it crash my game or all script working , i dont know why  :eek:hgodwhy:

me too :areyoukiddingme:
 
N

Natso

Guest
monday said:
did you try to compile it by yourself without editing just to check if it will work?
I open file by Henry and view source , complete but it not working , i edit source and it crash  :surprised:
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,125
Reaction score
149
assuming that the original mod works properly the reason could be some sanny builder plugin like sampfuncs but idk, it would be the best to ask the author
 
Status
Not open for further replies.
Top