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