CLEO Help compile error again

CLEO related
Status
Not open for further replies.

maximko

Well-known member
Joined
Apr 16, 2014
Messages
394
Reaction score
1
Location
Russia
when i compile it, it says unknown directive samp.Available()

Code:
{$CLEO}
0000:
while not samp.Available()
    wait 100
end
2@ = #WMYDRUG

while true
wait 0
if and
0AB0: key_pressed 114
056D: actor $PLAYER_ACTOR defined
0B61: samp is_local_player_spawned
then
    0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to $NOT_USED closest_ped_to 1@
    if and 
    not 1@ == -1
    056D: actor 1@ defined
    02F2: actor 1@ model == 2@
    then
        3@ = SAMP.GetSAMPPlayerIDByActorHandle(1@)
        say "/guard %i 200" 3@
    end
end
end
 

Husnain

Well-known member
Joined
May 20, 2016
Messages
228
Reaction score
9
Location
Mars
Who you're saying it t too? What I mean you forget to add target or near actor id . I know what you're making but I also made this cleo but it need a little fix so, I'll give it to you when it will be fixed. So, you just forgot too add actor I'd.
 

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
Absinthe said:
bump after 12 hours

well problem for me was to insert numeric id instead of #WMYDRUG so i seached for numeric id #WMYDRUG and id was 29 

so here it is successfully compiled key = F3 well i'm using sobeit so i get some warnings idk but you can try  

[attachment=4935]
 

Attachments

  • absinthe.rar
    6.5 KB · Views: 31

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
Absinthe said:
nice, can u change the hotkey to middle mouse and right click? plz mate

here you go hold middle mouse then press right click

[attachment=4936]


Absinthe said:
nice, can u change the hotkey to middle mouse and right click? plz mate

done
 

Attachments

  • absinthe2.rar
    6.5 KB · Views: 21

maximko

Well-known member
Joined
Apr 16, 2014
Messages
394
Reaction score
1
Location
Russia
dude it crashes, why does it happen? it says a error when i press :'(

it gives warning, then if u spam it.. u crash
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,133
Solutions
5
Reaction score
885
Location
Lithuania
[shcode=cpp]
{$CLEO}
0000:
while not samp.Available()
   wait 100
end
2@ = 29

while true
wait 0
if and
0AB0: key_pressed 4
0AB0: key_pressed 2
056D: actor $PLAYER_ACTOR defined
0B61: samp is_local_player_spawned
then
   0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 10@ closest_ped_to 1@
   if and
   not 1@ == -1
   056D: actor 1@ defined
   02F2: actor 1@ model == 2@
   then
        0B2B: samp 3@ = get_player_id_by_actor_handle 1@
       say "/guard %i 200" 3@
   end
end
end
[/shcode]
 

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
Parazitas said:
[shcode=cpp]
{$CLEO}
0000:
while not samp.Available()
   wait 100
end
2@ = 29

while true
wait 0
if and
0AB0: key_pressed 4
0AB0: key_pressed 2
056D: actor $PLAYER_ACTOR defined
0B61: samp is_local_player_spawned
then
   0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 10@ closest_ped_to 1@
   if and
   not 1@ == -1
   056D: actor 1@ defined
   02F2: actor 1@ model == 2@
   then
        0B2B: samp 3@ = get_player_id_by_actor_handle 1@
       say "/guard %i 200" 3@
   end
end
end
[/shcode]

i knew that $NOT_USED was the part of the problem but i didnt knew what to type there if i delete $NOT_USED xD thanks @Parazitas 
P.S merry me
 

maximko

Well-known member
Joined
Apr 16, 2014
Messages
394
Reaction score
1
Location
Russia
cant compile it, coz of this error "Unknown directive samp.Available()" I already have the Sampfuncs data on my SB Data folder
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,133
Solutions
5
Reaction score
885
Location
Lithuania
Absinthe said:
still gives me warnings :'( please help @Parazitas @springfield @_=Gigant=_

You don't say where you get problem....

[shcode=cpp]
{$CLEO .cs}
0000:


REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY 

2@ = 29
 
while true
wait 0
if and
0AB0: key_pressed 4
0AB0: key_pressed 2
056D: actor $PLAYER_ACTOR defined
0B61: samp is_local_player_spawned
then
   0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 10@ closest_ped_to 1@
   if and 
   not 1@ == -1
   056D: actor 1@ defined
   02F2: actor 1@ model == 2@
   then
        0B2B: samp 3@ = get_player_id_by_actor_handle 1@
       say "/guard %i 200" 3@
   end
end
end
[/shcode]
 

maximko

Well-known member
Joined
Apr 16, 2014
Messages
394
Reaction score
1
Location
Russia
Parazitas, try the mod in-game.. try it on a server then press middle mouse and right click, it gives me kind of that error what do you think it is? @Parazitas
i think theres a problem with the codes
 

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
Absinthe said:
ohh probably because of my cleo, what version of cleo are you using?

i use this one and everything works fine for me

[attachment=4940]
 

Attachments

  • CLEO4_setup.rar
    801.4 KB · Views: 24
Status
Not open for further replies.
Top