CLEO Help Editbox

CLEO related
Status
Not open for further replies.

Husnain

Well-known member
Joined
May 20, 2016
Messages
228
Reaction score
9
Location
Mars
How to create an editbox where you can type whatever you want? Tell me the method to create it, I'd really appreciate the help.
 

Krc

Active member
Joined
Mar 30, 2018
Messages
193
Reaction score
25
Location
Lithuania
Code:
0B3B: samp show_dialog id 1000 caption "Caption" text "Type something" button_1 "Ok" button_2 "No" style 1
 

Husnain

Well-known member
Joined
May 20, 2016
Messages
228
Reaction score
9
Location
Mars
Thank you

But I need only editbox with custom text to type whatever I want and also I can change its positon to place wherever I want. This just creates the edit box in the centre with buttons with it.
 
Last edited:

Husnain

Well-known member
Joined
May 20, 2016
Messages
228
Reaction score
9
Location
Mars
The use SF dialogs
Of course, I am talking about SF Dialog but not the one that appears in the center (not 0B3B), I need a SF editbox method so I can change its position too and also supports custom text typing (like 0B3b). Unfortunately, you cannot change the position of 0b3b opcode so I need an editbox (same like 0b3b) but also supports changing position,
 

ItsRobinson

Active member
Joined
Nov 16, 2017
Messages
105
Reaction score
20
PHP:
0B5A: get_screen_res 0@ 1@
0@ /= 2 //divides resolution to center it
1@ /= 2 
0B80: dialog 2@ = create "editdialog" 
0B88: dialog 1@ add_editbox id 2@ text "My edit box" pos_XY 0@ 1@ size 300 150 
//rest of your code
 
Status
Not open for further replies.
Top