CLEO Help dialog value

CLEO related
Status
Not open for further replies.

HowEnCokkien

Well-known member
Joined
Jul 9, 2017
Messages
307
Reaction score
9
so i want to make a weapon script by entering value in the dialog box but i cant get working. can you fix the code pls. thank you so much.

Code:
{$CLEO .cs}
0000:

REPEAT
WAIT 100
UNTIL 0AFA:

0B34: "dg" @CMD
0@ = 0

WHILE TRUE
WAIT 0
IF 0@ == 1
THEN

0AC6: 1@ = label @TEXT offset
0B3B: samp show_dialog id 450 caption "TEST DIALOG" text 1@ button_1 "OK" button_2 "CANCEL" style 3

IF 
0B3C:  samp is_dialog_responded id 450 button 2@ list_item 3@ input_text 5@

IF
2@ == 1
THEN

IF
3@ == 0
THEN
0AD4: 4@ = scan_string 5@ format "%d"  6@
0563: give_player $PLAYER_ACTOR ammo 6@
0@ = 0
END

END

END

END

:TEXT
hex
"Ammo"
end

:CMD
wait 0
IF
Not Actor.Dead($PLAYER_ACTOR)
THEN
0@ = 1
END
cmdret
 

Codex1337

Active member
Joined
Mar 1, 2014
Messages
170
Reaction score
1
You have to add these:

0247: load_model $IMPORT_CARS_MODEL($IMPORT_PANEL_ROW,6i)
01B2: give_actor 2@ weapon 28 ammo 60 // Load the weapon model before using this
 
Status
Not open for further replies.
Top