Spix
Well-known member
- Joined
- Sep 23, 2013
- Messages
- 353
- Reaction score
- 1
Hello, how can i check if a button is pressed, i did only found out how to check if a checkbox is checked, but didnt find for button.
Thanks for helping!
I did only find that, but its only for one button.
-
Thanks for helping!
I did only find that, but its only for one button.
-
0B82: dialog 1@ add_button id 3 text "Authenticate" pos_XY 115 50 size 110 25
So you created a dialog with sampfuncs opcode, but dont know howto check if button is pressed?
//IF
//0AB1: @BUTTON_CLICKED 1 ON_DIALOG 1@ control_id 3
//THEN
//**
:BUTTON_CLICKED
0B81: dialog 0@ pop_event_to 2@ control_id_to 3@
IF AND
2@ == 0x101
003B: 3@ == 1@
THEN
0485: return_true
ELSE
059A: return_false
END
0AB2: 0