functions on dialog buttons 1 @ go, even if they make another dialog like dialog 2 @ the functions of the first structure go, but the second does not, so to mention, the first structure goes perfectly with any dialogue but the second does not work at all.
Code:
[color=#2c2c2c][SIZE=3][size=small]0B81: dialog 1@ pop_event_to 12@ control_id_to 13@ [/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]if 13@ == 1 // if control id is 1[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]then say "d1"[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]end [/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]if 13@ == 2 // just add this construction with new button id[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]then say "2d"[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]end[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]if 13@ == 3[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]then[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]0B2B: samp 12@ = get_player_id_by_actor_handle $PLAYER_ACTOR[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]say "My SA-MP player ID: %d" 12@[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]end[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]if 13@ == 4[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]then[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]0B2B: samp 12@ = get_player_id_by_actor_handle $PLAYER_ACTOR[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]0B36: samp 14@ = get_player_nickname 12@[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]say "hi %s" 14@[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]end[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]end[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]0B81: dialog 2@ pop_event_to 12@ control_id_to 13@ [/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]if 13@ == 1 // if control id is 1[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]then say "d2"[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]end [/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]if 13@ == 2 // just add this construction with new button id[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]then say "2d"[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]end[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]if 13@ == 3[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]then[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]0B2B: samp 12@ = get_player_id_by_actor_handle $PLAYER_ACTOR[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]say "My SA-MP player ID: %d" 12@[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]end[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]if 13@ == 4[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]then[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]0B2B: samp 12@ = get_player_id_by_actor_handle $PLAYER_ACTOR[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]0B36: samp 14@ = get_player_nickname 12@[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]say "hi %s" 14@[/SIZE][/size][/color]
[color=#2c2c2c][SIZE=3][size=small]end[/SIZE][/size][/color]