UG-Base Gamehacking

Full Version: Command Sampfuncs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Stoned All my cleo with command activation are crashed with sampfuncs v3.1++  :lol:
so  :me_gusta: how to fix this?  :dont_care: what should i do to my script?
Commands changed in 3.0+, you need to rewrite your scripts.
Yesyes :bawww:
(06-23-2014, 01:08 PM)springfield link Wrote:Commands changed in 3.0+, you can't use loops or jf/jump inside a command label.
so how 2 add a condition that... oky example
same cmd for activation n deactivation
if player not in car print "u are not in car"
and if he is then perform command to idk type "u are in a car"

idk if its possible anymore?

Code:
if player_in_car
then do_shit
else say "ur not in a fuckin' car"
end

[member=516]Edd004[/member], post some of those activation commands here. Or try to rewrite them.
(06-23-2014, 01:31 PM)Crokit link Wrote:[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.
so how 2 add a condition that... oky example
same cmd for activation n deactivation
if player not in car print "u are not in car"
and if he is then perform command to idk type "u are in a car"

idk if its possible anymore?
[/quote]

You can still use loops and jf @ and jump @.

:TOG
IF
00DF:  actor $PLAYER_ACTOR driving
THEN
    0AF8: ADD_CHAT_MSG "YOU'RE DRIVING!" color 0xFFFFFF
    ELSE
    0AF8: ADD_CHAT_MSG "YOU'RE NOT DRIVING!" color 0xFFFFFF
END
0B43: CMD_RETRN
but like this

Code:
0B34: samp register_client_command "CarThing" to_label @Car


WHILE TRUE
wait 0
if [email protected] == 1
then
    0000: NOP
end
END

:Car
0B12: [email protected] = [email protected] XOR 1
if and
   Player.Defined($PLAYER_ACTOR)
   Actor.Driving($PLAYER_ACTOR)
then   
    if
    [email protected] == 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

?

No, that's pure shit, replace the 'jf' with 'else' and add after else the text. No need for another thread.
(06-23-2014, 01:50 PM)springfield link Wrote:No, that's pure shit, replace the 'jf' with 'else' and add after else the text. No need for another thread.
yes, thx, but what Im trying to ask: there are no more jumps? only "else"? we cant jump anymore?

i got crash when i do something like this

:A
wait 0
text "cmon get a car bijes!" 2727
if
Actor.Driving($PLAYER_ACTOR)
jf @A
text "k" 2232
Samp.CmdRet()

it will crash when it jump back to the A  Yesyes

are there any method to fix this(or do something like this) ?  :me_gusta:

Pages: 1 2