Is it possible in textdraw ?
#1

Hello, I need to put words such "й, а ...." inside a textdraw, but I found that is impossible, is it possible or impossible ?

Thanks!
Reply
#2

Kindly, can someone give me a reply about that ?
Reply
#3

Yes, it's possible.

Use this function:

http://pastebin.com/fyx4YrmA
Reply
#4

Thank you!
Reply
#5

Change the ecoding (to one that displays characters like that in-game) and recompile your gamemode.
Reply
#6

Tested: - The function is not working

Quote:
Originally Posted by SickAttack
View Post
Change the ecoding (to one that displays characters like that in-game) and recompile your gamemode.
I didn't understand what do you want say brother

Here's the code, can someone help me please ?
PHP Code:
new MSGinfo[128];
format(MSGinfo,sizeof MSGinfo,ConvertToGameText("Si vous йchouez а cette mission"));
SetPlayerMessageInformation(playeridCOLOR_WHITEMSGinfo);
public 
SetPlayerMessageInformation(playeridtimetext[])
{
    
TextDrawSetString(TextdrawTexteINFOtext);
    
TextDrawShowForPlayer(playeridTextdrawTexteINFO);
    return 
1;
}
    
TextdrawTexteINFO TextDrawCreate(337.600158344.213439"");
    
TextDrawLetterSize(TextdrawTexteINFO0.2363991.152000);
    
TextDrawTextSize(TextdrawTexteINFO0.0000,300);
    
TextDrawAlignment(TextdrawTexteINFO2);
    
TextDrawColor(TextdrawTexteINFO, -1);
    
TextDrawUseBox(TextdrawTexteINFOtrue);
    
TextDrawBoxColor(DrawAcceuile2102);
    
TextDrawSetShadow(TextdrawTexteINFO0);
    
TextDrawSetOutline(TextdrawTexteINFO1);
    
TextDrawBackgroundColor(TextdrawTexteINFO51);
    
TextDrawFont(TextdrawTexteINFO1);
    
TextDrawSetProportional(TextdrawTexteINFO1); 
Reply
#7

Try it

Code:
new MSGinfo[128]; 
format(MSGinfo,sizeof MSGinfo, "Si vous йchouez а cette mission"); 
SetPlayerMessageInformation(playerid, COLOR_WHITE, MSGinfo); 

public SetPlayerMessageInformation(playerid, time, text[]) 
{ 
    TextDrawSetString(TextdrawTexteINFO, ConvertToGameText(text)); 
    TextDrawShowForPlayer(playerid, TextdrawTexteINFO); 
    return 1; 
} 

    TextdrawTexteINFO = TextDrawCreate(337.600158, 344.213439, ""); 
    TextDrawLetterSize(TextdrawTexteINFO, 0.236399, 1.152000); 
    TextDrawTextSize(TextdrawTexteINFO, 0.0000,300); 
    TextDrawAlignment(TextdrawTexteINFO, 2); 
    TextDrawColor(TextdrawTexteINFO, -1); 
    TextDrawUseBox(TextdrawTexteINFO, true); 
    TextDrawBoxColor(DrawAcceuile2, 102); 
    TextDrawSetShadow(TextdrawTexteINFO, 0); 
    TextDrawSetOutline(TextdrawTexteINFO, 1); 
    TextDrawBackgroundColor(TextdrawTexteINFO, 51); 
    TextDrawFont(TextdrawTexteINFO, 1); 
    TextDrawSetProportional(TextdrawTexteINFO, 1);
Reply
#8

Quote:
Originally Posted by Maximun
View Post
Tested: - The function is not working



I didn't understand what do you want say brother

Here's the code, can someone help me please ?
PHP Code:
new MSGinfo[128];
format(MSGinfo,sizeof MSGinfo,ConvertToGameText("Si vous йchouez а cette mission"));
SetPlayerMessageInformation(playeridCOLOR_WHITEMSGinfo);
public 
SetPlayerMessageInformation(playeridtimetext[])
{
    
TextDrawSetString(TextdrawTexteINFOtext);
    
TextDrawShowForPlayer(playeridTextdrawTexteINFO);
    return 
1;
}
    
TextdrawTexteINFO TextDrawCreate(337.600158344.213439"");
    
TextDrawLetterSize(TextdrawTexteINFO0.2363991.152000);
    
TextDrawTextSize(TextdrawTexteINFO0.0000,300);
    
TextDrawAlignment(TextdrawTexteINFO2);
    
TextDrawColor(TextdrawTexteINFO, -1);
    
TextDrawUseBox(TextdrawTexteINFOtrue);
    
TextDrawBoxColor(DrawAcceuile2102);
    
TextDrawSetShadow(TextdrawTexteINFO0);
    
TextDrawSetOutline(TextdrawTexteINFO1);
    
TextDrawBackgroundColor(TextdrawTexteINFO51);
    
TextDrawFont(TextdrawTexteINFO1);
    
TextDrawSetProportional(TextdrawTexteINFO1); 


Using Sublime Text 3.
Reply
#9

#CaioTJF : Not working
#SickAttack : I got a problem, in picture (2) the words was working perfectly before the error sublime text
Reply
#10

Any help please, I still need a reply
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)