so how 2 add a condition that... oky examplespringfield link said:Commands changed in 3.0+, you can't use loops or jf/jump inside a command label.
if player_in_car
then do_shit
else say "ur not in a fuckin' car"
end
so how 2 add a condition that... oky exampleCrokit link said:[quote author=springfield link=topic=7890.msg45059#msg45059 date=1403525314]
Commands changed in 3.0+, you can't use loops or jf/jump inside a command label.
0B34: samp register_client_command "CarThing" to_label @Car
WHILE TRUE
wait 0
if 0@ == 1
then
0000: NOP
end
END
:Car
0B12: 0@ = 0@ XOR 1
if and
Player.Defined($PLAYER_ACTOR)
Actor.Driving($PLAYER_ACTOR)
then
if
0@ == 1
then
03C0: $car = actor $PLAYER_ACTOR car
036A: put_actor $PLAYER_ACTOR in_car $car
else
072B: put_actor $PLAYER_ACTOR into_car $car passengerseat 1
0430: put_actor $PLAYER_ACTOR into_car $car passenger_seat 1
end
end
jf @NotInCar
0B43: samp cmd_ret
:NotInCar
wait 0
0AF8: samp add_message_to_chat "U r not in car" color 0xFFFF00
SAMP.CmdRet
yes, thx, but what Im trying to ask: there are no more jumps? only "else"? we cant jump anymore?springfield link said:No, that's pure shit, replace the 'jf' with 'else' and add after else the text. No need for another thread.
0B29: samp set_local_name 0@