hello, here's my code.
it isn't do anything in the dialog 16. where is the problem?
Code:
{$CLEO .cs}
0000:NOP
repeat
wait 100
until 0AFA: SAMP_IS_READY
0B34: "gunmenu" @gun_dialog
while true
wait 0
if
0B3C: samp is_dialog_responded id 15 button 2@ list_item 3@ input_text 0
then
if
2@ == 1
then
if
3@ == 0
then
0B3B: samp show_dialog id 16 caption "Weapon Menu" text "Enter your ammo." button_1 "OK" button_2 "CANCEL" style 1
if
0B3C: samp is_dialog_responded id 16 button 4@ list_item 0 input_text 5@
then
if
4@ == 1
then
0AD4: 6@ = scan_string 5@ format "%d" 7@
01B2: give_actor $PLAYER_ACTOR weapon 24 ammo 7@ // Load the weapon model before using this
end
end
end
if
3@ == 1
then
0B3B: samp show_dialog id 16 caption "Weapon Menu" text "Enter your ammo." button_1 "OK" button_2 "CANCEL" style 1
if
0B3C: samp is_dialog_responded id 16 button 4@ list_item 0 input_text 5@
then
if
4@ == 1
then
0AD4: 6@ = scan_string 5@ format "%d" 7@
01B2: give_actor $PLAYER_ACTOR weapon 25 ammo 7@ // Load the weapon model before using this
end
end
end
if
3@ == 2
then
0B3B: samp show_dialog id 16 caption "Weapon Menu" text "Enter your ammo." button_1 "OK" button_2 "CANCEL" style 1
if
0B3C: samp is_dialog_responded id 16 button 4@ list_item 0 input_text 5@
then
if
4@ == 1
then
0AD4: 6@ = scan_string 5@ format "%d" 7@
01B2: give_actor $PLAYER_ACTOR weapon 26 ammo 7@
end
end
end
if
3@ == 3
then
0B3B: samp show_dialog id 16 caption "Weapon Menu" text "Enter your ammo." button_1 "OK" button_2 "CANCEL" style 1
if
0B3C: samp is_dialog_responded id 16 button 4@ list_item 0 input_text 5@
then
if
4@ == 1
then
0AD4: 6@ = scan_string 5@ format "%d" 7@
01B2: give_actor $PLAYER_ACTOR weapon 27 ammo 7@
end
end
end
end
end
end
:gun_dialog
0AC6: 0@ = label @gun_text offset
0B3B: samp show_dialog id 15 caption "Gun Menu" text 0@ button_1 "OK" button_2 "CANCEL" style 2
SAMP.CmdRet()
:gun_text
hex
"Desert Eagle" A
"Shotgun" A
"Sawnoff Shotgun" A
"Combat Shotgun" 0
end
it isn't do anything in the dialog 16. where is the problem?