pepeelpubero
Well-known member
- Joined
- Jan 21, 2014
- Messages
- 433
- Reaction score
- 1
I want to create a dialog box when i type for example /menu but i can't. I use a code for dialog made by springfield but it crash my game. And how to put any condition? For example: when i press wine it create a model on my coords.
Code:
{$CLEO}
0000:
if 0@ = SAMP.Base()
then
while not SAMP.Available()
wait 500
end
0B34: samp register_client_command "menu" to_label @cmd
else end_thread
end
while true
wait 0
end
:cmd
0AC6: 0@ = label @TEXT offset
SAMP.ShowDialog(2, "Title", 0@, "OK", "Close", DIALOG_STYLE_LIST)
:TEXT
hex
"BEER" 0A
"WINE" 0A
"BLOOD" 0A
"JUICE" 0A
"SPERM" 00
end