Spix
Well-known member
- Joined
- Sep 23, 2013
- Messages
- 353
- Reaction score
- 1
Hello, Im new with dialogs and im trying to create my first dialog but it won't work, I get opcodes errors in chat window, anyone got an idea whats wrong?
I post the script in the spoiler Best wishes Spexx!
I post the script in the spoiler Best wishes Spexx!
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .CS}
//-------------MAIN---------------
0000: NOP
03A4: name_thread "BYSPEXX"
:Avaiable
wait 0
if
samp.Available
else_jump @Avaiable
jump @BYSPEXX_66
:BYSPEXX_66
wait 0
0B80: dialog 5@ = create "{CCFFCC}Dialog"
0B86: dialog 5@ set_visible 1
0B84: dialog 5@ set_pos_XY 1000 0 size 300 300
0B82: dialog 5@ add_button id 1 text "{99FF33}SCRIPT 1" pos_XY 30 30 size 100 23
0B82: dialog 5@ add_button id 2 text "{FF3333}SCRIPT 2" pos_XY 30 60 size 100 23
0B83: dialog 5@ add_checkbox id 3 text "{FF3333}SCRIPT 3" pos_XY 90 120 size 250 25
0BA1: dialog 5@ set_minimized 1
0002: jump @BYSPEXX_200
:BYSPEXX_200
0001: wait 0 ms
0B81: dialog 5@ pop_event_to 10@ control_id_to 11@
00D6: if
8039: not 11@ == 1
004D: jump_if_false @BYSPEXX_377
00D6: if
8039: not 11@ == 2
004D: jump_if_false @BYSPEXX_406
00D6: if
8039: not 11@ == 3
004D: jump_if_false @BYSPEXX_378
0002: jump @BYSPEXX_200
:BYSPEXX_377
0001: wait 0 ms
0ACD: show_text_highpriority "BUTTON ~G~1" time 300
0002: jump @BYSPEXX_200
:BYSPEXX_406
0001: wait 0 ms
0ACD: show_text_highpriority "BUTTON ~G~2" time 300
0002: jump @BYSPEXX_200
:BYSPEXX_378
0001: wait 0
0ACD: show_text_highpriority "BUTTON Spam ~G~2" time 300
0002: jump @BYSPEXX_200
{$CLEO .CS}
//-------------MAIN---------------
0000: NOP
03A4: name_thread "BYSPEXX"
:Avaiable
wait 0
if
samp.Available
else_jump @Avaiable
jump @BYSPEXX_66
:BYSPEXX_66
wait 0
0B80: dialog 5@ = create "{CCFFCC}Dialog"
0B86: dialog 5@ set_visible 1
0B84: dialog 5@ set_pos_XY 1000 0 size 300 300
0B82: dialog 5@ add_button id 1 text "{99FF33}SCRIPT 1" pos_XY 30 30 size 100 23
0B82: dialog 5@ add_button id 2 text "{FF3333}SCRIPT 2" pos_XY 30 60 size 100 23
0B83: dialog 5@ add_checkbox id 3 text "{FF3333}SCRIPT 3" pos_XY 90 120 size 250 25
0BA1: dialog 5@ set_minimized 1
0002: jump @BYSPEXX_200
:BYSPEXX_200
0001: wait 0 ms
0B81: dialog 5@ pop_event_to 10@ control_id_to 11@
00D6: if
8039: not 11@ == 1
004D: jump_if_false @BYSPEXX_377
00D6: if
8039: not 11@ == 2
004D: jump_if_false @BYSPEXX_406
00D6: if
8039: not 11@ == 3
004D: jump_if_false @BYSPEXX_378
0002: jump @BYSPEXX_200
:BYSPEXX_377
0001: wait 0 ms
0ACD: show_text_highpriority "BUTTON ~G~1" time 300
0002: jump @BYSPEXX_200
:BYSPEXX_406
0001: wait 0 ms
0ACD: show_text_highpriority "BUTTON ~G~2" time 300
0002: jump @BYSPEXX_200
:BYSPEXX_378
0001: wait 0
0ACD: show_text_highpriority "BUTTON Spam ~G~2" time 300
0002: jump @BYSPEXX_200