CLEO Help Create textdraw with text from ini file

CLEO related
Status
Not open for further replies.

renko

Active member
Joined
Jul 8, 2014
Messages
58
Reaction score
0
I have an ini file with a string. I get that string with a cleo mod and i want to create a samp textdraw with that text.
So i get the string like that
Code:
0AC8: 20@ = allocate_memory_size 20
0AF4: 20@ = read_string_from_ini_file "cleo\config.ini" section "SectionName" key "stringKey"
After that, i create the textdraw like that
Code:
0C48: samp textdraw 30@ create 20@ pos 10@ 11@
The problem is that the if my string is for example "Big boss" in samp it will show "Big" on one row and "boss" on another row...
Like that:
http://i.imgur.com/HGMuLb2.jpg
And i want to show "Big boss" on one row.
 

renko

Active member
Joined
Jul 8, 2014
Messages
58
Reaction score
0
Codex1337 link said:
use allocation of vars it may work, or it's just because of using 'spaces'
I tried to use allocation of vars but it still isn't working. This is my point, i want to show spaces but i can't. Because i want to have more than one word
 

renko

Active member
Joined
Jul 8, 2014
Messages
58
Reaction score
0
Codex1337 link said:
Copy/paste the space between my inverted commas("), copy/paste the space " " . I hope it should work
Not working. I think it's about the drawing of the texture... :-?? It's a command
Code:
0343: set_text_draw_linewidth 640.0
but it isn't working for samp textdraw... :-??
 

Codex1337

Active member
Joined
Mar 1, 2014
Messages
170
Reaction score
1
Store first word in other section and the word after space in other section, then read it with different vars. Make a format "%s %s" var1 var2 and then try to make textdraw
 

renko

Active member
Joined
Jul 8, 2014
Messages
58
Reaction score
0
Codex1337 link said:
Store first word in other section and the word after space in other section, then read it with different vars. Make a format "%s %s" var1 var2 and then try to make textdraw
It's not about the string, it's formed correctly. But I think the linewidth is too small
 
Status
Not open for further replies.
Top