HowEnCokkien
Well-known member
- Joined
- Jul 9, 2017
- Messages
- 307
- Reaction score
- 11
so my biggest problem about cleo coding,, i cant get this dialog shits working so correct me pls. even it doesnt do a simple action.
ty
Code:
{$CLEO}
0000:NOP
REPEAT
wait 100
until 0AFA:
0B34: "hz" @test
while true
wait 0
end
while true
wait 0
IF 0B3C: samp is_dialog_responded id 100 button 9@ list_item 10@ input_text 0
THEN
IF 0039: 9@ == 1
THEN
IF 0039: 10@ == 0
THEN
Model.Load(368)
END
IF MODEL.Available(368)
THEN
01B2: give_actor $PLAYER_ACTOR weapon 44 ammo 1
wait 50
Model.Destroy(368)
END
END
END
END
:test
wait 0
0AC6: 1@ = label @text offset
0B3B: samp show_dialog id 100 caption "test" text 1@ button_1 "OK" button_2 "CANCEL" style 2
0B43: samp cmd_ret
:text
hex
"Randdom wep" 0
end