CLEO Help Problem

CLEO related
Status
Not open for further replies.

alborosie

Active member
Joined
Aug 16, 2017
Messages
67
Reaction score
3
What's the problem with this script?
Code:
{$CLEO .cs}
0000:NOP

0B34: samp register_client_command "truck" to_label @truck


:truck
 Actor.Driving($PLAYER_ACTOR)
Wait 100000
0972: put_actor $PLAYER_ACTOR at -208.05 -234.47 1.42
Wait 1000000
0972: put_actor $PLAYER_ACTOR at 2265.98 30.39 27.04
Pls help me!
 
Joined
Dec 31, 2015
Messages
712
Reaction score
27
There's no infinite loop body
There's no cmd return in the :truck label
There's no statement that will check if your actor is currently driving
There's a freakin 100 and 1000 seconds sleep time!
 

alborosie

Active member
Joined
Aug 16, 2017
Messages
67
Reaction score
3
supahdupahnubah said:
There's no infinite loop body
There's no cmd return in the :truck label
There's no statement that will check if your actor is currently driving
There's a freakin 100 and 1000 seconds sleep time!
                          ^ 
You can make this?  |
 

noob213

Active member
Joined
Sep 15, 2017
Messages
88
Reaction score
6
you need to learn a tutorial for sanny builder
 http://bit.ly/2yLj2nz

Code:
{$CLEO}
0000:

0B34: samp register_client_command "truck" to_label @truck

while true
wait 0 ms //wait 0 ms milliseconds
if 
0@ == 1
then
if
00DF:   actor $PLAYER_ACTOR driving
then
00A1: put_actor $PLAYER_ACTOR at 0.0 0.0 0.0 // here the x and z coordinates where the player is teleported
0@ = 0
end
end
end


:truck
0@ = 1
0B43: samp cmd_ret
 
Status
Not open for further replies.
Top