CLEO HELP TEXT_BOX

KamikazeSripterul

Well-Known Member
Joined
Jun 30, 2019
Messages
61
Likes
1
Points
8
#1
So I've tried to make a textbox once the whole script has been running but when i test it in game, nothing happens.
Code:
alloc [email protected] 260
    0B75: samp get_chat_string 99 text_to [email protected] prefix_to [email protected] color_to [email protected] prefix_color_to [email protected]
    
    if or
    [email protected] == 0xffffd700           
    [email protected] == 0xff4dad2b
    then
        if
        0C29: $not_used = strstr string1 [email protected] string2 "Your account balance is now"
    then   
        0AB1: @GetText 1 WriteStringPointer [email protected] rnt [email protected]
        0AF5: write_string [email protected] to_ini_file "cleo\ServerCMD.ini" section "Bank" key "balance"       
        0ACE: show_formatted_text_box "There was a change at your bank account balance! Use /bankmenu in order to see new changes." -1
        wait 5000
        end
    end   
free [email protected]
Can anyone help? Thanks
 
OP
OP
K

KamikazeSripterul

Well-Known Member
Joined
Jun 30, 2019
Messages
61
Likes
1
Points
8
#3
@Parazitas the thing is, i want to make a message that wont appear in chat but also it will appear somewhere on the screen then after 5-6 sec it will disappear. Thats why i thought of a text box
 

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
1,409
Likes
153
Points
78
Location
Lithuania
Website
ugbase.eu
15
#4
PHP:
:DRAW_TEXT
{
    0AB1: @DRAW_TEXT 3 X 160.0 Y 230.0 String [email protected]
}
03F0: enable_text_draw 1
0342: set_text_draw_centered 1
03E0: draw_text_behind_textures 0
0340: set_text_draw_RGBA 66 195 227 255
033F: set_text_draw_letter_size width 0.205 height 0.955
0349: set_text_draw_font 2
060D: draw_text_shadow 0 rgba 43 43 43 255
0AA8: call_function_method 0x6A0050 0xC1B340 num_params 1 pop 0 'CRED036' [email protected] //// Get gxt text address by gxt name
0AA5: call 0x718600 2 pop 2 [email protected] [email protected] // [email protected] = TEXT
033E: set_draw_text_position [email protected] [email protected] GXT 'CRED036' // "String"
0AB2: 0
 
OP
OP
K

KamikazeSripterul

Well-Known Member
Joined
Jun 30, 2019
Messages
61
Likes
1
Points
8
#5
PHP:
:DRAW_TEXT
{
    0AB1: @DRAW_TEXT 3 X 160.0 Y 230.0 String [email protected]
}
03F0: enable_text_draw 1
0342: set_text_draw_centered 1
03E0: draw_text_behind_textures 0
0340: set_text_draw_RGBA 66 195 227 255
033F: set_text_draw_letter_size width 0.205 height 0.955
0349: set_text_draw_font 2
060D: draw_text_shadow 0 rgba 43 43 43 255
0AA8: call_function_method 0x6A0050 0xC1B340 num_params 1 pop 0 'CRED036' [email protected] //// Get gxt text address by gxt name
0AA5: call 0x718600 2 pop 2 [email protected] [email protected] // [email protected] = TEXT
033E: set_draw_text_position [email protected] [email protected] GXT 'CRED036' // "String"
0AB2: 0
0AB1: @DRAW_TEXT 3 X 160.0 Y 230.0 String [email protected]
what is string [email protected]?
 
Top