MalikeiraOPoder
Active member
- Joined
- Mar 16, 2019
- Messages
- 100
- Reaction score
- 2
someone help with dialog...
im learning how i can use dialog etc...
and i wanna know how can i do "while true" for each dialog...
exemple: i got 2 dialog or more.. and these dialog need a "While true" how can i do ? here my code..
look... the dialog 0@ it has a "while true"
for dialog 1@, how can i add a "while true" to edit this dialog ?
im learning how i can use dialog etc...
and i wanna know how can i do "while true" for each dialog...
exemple: i got 2 dialog or more.. and these dialog need a "While true" how can i do ? here my code..
PHP:
{$CLEO}
{$INCLUDE SF}
0000: NOP
repeat
wait 0
until SAMP.Available()
Dialog.Create(0@, "MultiCheats ")
Dialog.SetRECT(0@, 491, 462, 250, 250)
Dialog.AddCheckBox(0@, 1, "Equip Guns", 5, 5, 180, 25)
Dialog.AddCheckBox(0@, 2, "Wall Hack Menu", 5, 30, 180, 25)
Dialog.AddCheckBox(0@, 3, "Teleport Menu", 5, 55, 180, 25)
Dialog.AddCheckBox(0@, 4, "Player Menu", 5, 80, 180, 25)
Dialog.AddCheckBox(0@, 5, "Others", 5, 105, 180, 25)
Dialog.AddCheckBox(0@, 6, "Panic Mod", 5, 170, 180, 25)
Dialog.AddButton(0@, 7, "Exit", 115, 200, 55, 25)
Dialog.AddButton(0@, 8, "Help", 175, 5, 60, 30)
Dialog.AddButton(0@, 9, "Cmd", 175, 45, 55, 30)
Dialog.SetVisible(0@,0)
Dialog.Create(1@, "Equip Guns")
Dialog.SetRECT(1@, 490, 262, 250, 200)
Dialog.AddCheckBox(1@, 1, "coming", 5, 0, 280, 25)
Dialog.AddCheckBox(1@, 2, "coming", 5, 25, 280, 25)
Dialog.AddCheckBox(1@, 3, "coming", 5, 50, 280, 25)
Dialog.AddCheckBox(1@, 4, "coming", 5, 75, 180, 25)
Dialog.AddCheckBox(1@, 5, "coming", 5, 100, 180, 25)
Dialog.AddCheckBox(1@, 6, "coming", 5, 125, 180, 25)
Dialog.AddCheckBox(1@, 7, "coming", 5, 150, 180, 25)
Dialog.SetVisible(1@,0)
0B34: samp register_client_command ".menu" to_label @ShowDialog
WHILE TRUE
WAIT 0
IF
Dialog.IsVisible(0@)
THEN
SAMP.ToggleCursor(1)
IF
Dialog.PopEvent(0@, 2@, 3@)
THEN
IF AND
3@ == 7 // ID
2@ == 257 // pressed
THEN
Dialog.SetVisible(0@,0)
SAMP.ToggleCursor(0)
END
END
END // END Dialog.IsVisible(0@)
IF
Dialog.CheckBoxIsChecked(0@,1)
THEN
Dialog.SetVisible(1@,1)
else
dialog.SetVisible(1@,0)
END
END
:ShowDialog
Dialog.SetVisible(0@, 1)
0B43: samp cmd_ret
look... the dialog 0@ it has a "while true"
for dialog 1@, how can i add a "while true" to edit this dialog ?