Bug commands

DBKALY

New Member
Joined
Feb 3, 2018
Messages
3
Likes
0
Points
1
1
#1
Hello, how to do if I add more stuff that has 1 @ 2 @ etc to work all, if a mode has 1 @ and another mode has 1 @ it bugs and does not go anymore how it is done
Code:
WHILE TRUE
WAIT 0
END
 
:rejoin
WAIT 0
0B35: [email protected]
        IF
            0AD4: [email protected] = [email protected] "%s" [email protected]
        THEN
            0B29: [email protected]
            ALLOC [email protected] 70
            ALLOC [email protected] 70
            0B39: [email protected] [email protected]
            0B38: [email protected] [email protected]
            FREE [email protected]
            FREE [email protected]
        END
CMDRET
Code:
WHILE TRUE
WAIT 0
END

if  
0ab0: 114 //f3
then 
    0AC6: [email protected] = label @button offset
    0B3B: samp show_dialog id 1000 caption "Cheats" text [email protected] button_1 "Ok" button_2 "Cancel" style 2
    wait 1000
end

if 
0B3C:  samp is_dialog_responded id 1000 button [email protected] list_item [email protected] input_text 0
then

    if and
    [email protected] == 1
    [email protected] == 0
    then  
        0AC6: [email protected] = label @dialog2 offset
        SAMP.ShowDialog(7777, "{FFFFFF}Dialog by dbkaly ves", [email protected], "Cancel", "", 0)
        SAMP.CmdRet
    end  
    
    
end 
end
Code:
WHILE TRUE
WAIT 0
END

:weather
SAMP.IsCommandTyped([email protected])
0C1A: [email protected] = [email protected]
IF AND
    [email protected] <= 45
    [email protected] >= 0
THEN
    SAMP.WriteSAMPMemory(0xC430, 0xC390, 2)
    01B6: setWeather [email protected]
ELSE
    0AF8: "Use: /setw <0-45>" 0xC0FF01
END
cmdret

:time
SAMP.IsCommandTyped([email protected])
0C1A: [email protected] = [email protected]
IF AND
    [email protected] <= 23
    [email protected] >= 0
THEN
    SAMP.WriteSAMPMemory(0xBFB0, 0xC390, 2)
    SAMP.WriteSAMPMemory(0xC4E0, 0xC390, 2)
    [email protected] = SAMP.Base()
    [email protected] += 0x21A0F8
    0A8D: readMem [email protected] = [email protected] sz 4 vp 1
    [email protected] += 0x3C5
    0A8D: readMem [email protected] = [email protected] sz 4 vp 1
    [email protected] += 0x2C
    0A8C: writeMem [email protected] sz 1 val [email protected] vp 1
    0A8C: writeMem 0x00B70153 sz 1 val [email protected] vp 0
ELSE
    0AF8: "Use: /sett <0-23>" 0xC0FF01
END
cmdret
Many contain 2 @ I tried to exchange them with 23 @ 24 @ but they give me a crash, I tried to put them all in a WHILE TRUE WAIT 0 END but after failing correctly, I really do not know what I can do, I want all these commands in a .cs way
 
Top