cheetahftw1
Active member
- Joined
- Aug 31, 2018
- Messages
- 39
- Reaction score
- 0
0B34: samp_register_client_command "rules" to_label @dialog
while true
wait 0
if
0B3C: samp is_dialog_responded id 1080 button 1@ list_item 6@ input_text 0
then
if and
5@ == 1 // Pressed = 1
6@ == 0 // List item number
then
0AC6: 8@ = label @conturi offset
0B3B: samp show_dialog id 1081 caption "{FF6347}[Admin Help] {FFFFFF}1. Conturi" text 8@ button_1 "Close" button_2 "" style 0
end
if and
5@ == 1 // Pressed = 1
6@ == 1 // List item number
then
0AC6: 8@ = label @coduri offset
0B3B: samp show_dialog id 1082 caption "{FF6347}[Admin Help] {FFFFFF}2. Coduri" text 8@ button_1 "Close" button_2 "" style 0
end
end
end
:dialog
SAMP.IsCommandTyped(0@)
0AC6: 0@ = label @toatecomenzile offset
SAMP.ShowDialog(1080, "{FF6347}[Admin Help] {FFFFFF}Server Rules:", 0@, "Select", "Close", 2)
SAMP.CmdRet
:toatecomenzile
HEX
"1. Conturi" A
"2. Coduri" 0
END
:conturi
HEX
"TEST" A
"TEST 2" 0
END
:coduri
HEX
"TEST 3" A
"TEST 4" 0
END
/rules works but when you press anything in mod, nothing happens. Why?
while true
wait 0
if
0B3C: samp is_dialog_responded id 1080 button 1@ list_item 6@ input_text 0
then
if and
5@ == 1 // Pressed = 1
6@ == 0 // List item number
then
0AC6: 8@ = label @conturi offset
0B3B: samp show_dialog id 1081 caption "{FF6347}[Admin Help] {FFFFFF}1. Conturi" text 8@ button_1 "Close" button_2 "" style 0
end
if and
5@ == 1 // Pressed = 1
6@ == 1 // List item number
then
0AC6: 8@ = label @coduri offset
0B3B: samp show_dialog id 1082 caption "{FF6347}[Admin Help] {FFFFFF}2. Coduri" text 8@ button_1 "Close" button_2 "" style 0
end
end
end
:dialog
SAMP.IsCommandTyped(0@)
0AC6: 0@ = label @toatecomenzile offset
SAMP.ShowDialog(1080, "{FF6347}[Admin Help] {FFFFFF}Server Rules:", 0@, "Select", "Close", 2)
SAMP.CmdRet
:toatecomenzile
HEX
"1. Conturi" A
"2. Coduri" 0
END
:conturi
HEX
"TEST" A
"TEST 2" 0
END
:coduri
HEX
"TEST 3" A
"TEST 4" 0
END
/rules works but when you press anything in mod, nothing happens. Why?