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
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
Code:
WHILE TRUE
WAIT 0
END
:rejoin
WAIT 0
0B35: 0@
IF
0AD4: 1@ = 0@ "%s" 6@v
THEN
0B29: 6@v
ALLOC 3@ 70
ALLOC 4@ 70
0B39: 3@ 4@
0B38: 3@ 4@
FREE 3@
FREE 4@
END
CMDRET
Code:
WHILE TRUE
WAIT 0
END
if
0ab0: 114 //f3
then
0AC6: 0@ = label @button offset
0B3B: samp show_dialog id 1000 caption "Cheats" text 0@ button_1 "Ok" button_2 "Cancel" style 2
wait 1000
end
if
0B3C: samp is_dialog_responded id 1000 button 2@ list_item 3@ input_text 0
then
if and
2@ == 1
3@ == 0
then
0AC6: 17@ = label @dialog2 offset
SAMP.ShowDialog(7777, "{FFFFFF}Dialog by dbkaly ves", 17@, "Cancel", "", 0)
SAMP.CmdRet
end
end
end
Code:
WHILE TRUE
WAIT 0
END
:weather
SAMP.IsCommandTyped(0@)
0C1A: 0@ = 0@
IF AND
0@ <= 45
0@ >= 0
THEN
SAMP.WriteSAMPMemory(0xC430, 0xC390, 2)
01B6: setWeather 0@
ELSE
0AF8: "Use: /setw <0-45>" 0xC0FF01
END
cmdret
:time
SAMP.IsCommandTyped(1@)
0C1A: 1@ = 1@
IF AND
1@ <= 23
1@ >= 0
THEN
SAMP.WriteSAMPMemory(0xBFB0, 0xC390, 2)
SAMP.WriteSAMPMemory(0xC4E0, 0xC390, 2)
2@ = SAMP.Base()
2@ += 0x21A0F8
0A8D: readMem 2@ = 2@ sz 4 vp 1
2@ += 0x3C5
0A8D: readMem 2@ = 2@ sz 4 vp 1
2@ += 0x2C
0A8C: writeMem 2@ sz 1 val 1@ vp 1
0A8C: writeMem 0x00B70153 sz 1 val 1@ vp 0
ELSE
0AF8: "Use: /sett <0-23>" 0xC0FF01
END
cmdret