I cant load custom textdraws..
#1

I have done STEP BY STEP of how it is in this tutorial,

But in reality I can not load it, whatever it is.

Even here I have a sample that the .txd file is fine.

My codes are these.
PHP код:
AddSimpleModel(-119379, -2000"object.dff""textdrawtest.txd");
TextDraws[1] = TextDrawCreate(145.33335829.311109"mdl-2000:overlay");
TextDrawTextSize(TextDraws[1], 350.000000265.000000);
TextDrawAlignment(TextDraws[1], 1);
TextDrawColor(TextDraws[1], -1);
TextDrawSetShadow(TextDraws[1], 0);
TextDrawBackgroundColor(TextDraws[1], 255);
TextDrawFont(TextDraws[1], 4);
TextDrawSetProportional(TextDraws[1], 0); 
If you can help me i would thank you a million.
Reply
#2

Quote:
Originally Posted by dani18
Посмотреть сообщение
I have done STEP BY STEP of how it is in this tutorial,



But in reality I can not load it, whatever it is.

Even here I have a sample that the .txd file is fine.



My codes are these.
PHP код:
AddSimpleModel(-119379, -2000"object.dff""textdrawtest.txd");
TextDraws[1] = TextDrawCreate(145.33335829.311109"mdl-2000:overlay");
TextDrawTextSize(TextDraws[1], 350.000000265.000000);
TextDrawAlignment(TextDraws[1], 1);
TextDrawColor(TextDraws[1], -1);
TextDrawSetShadow(TextDraws[1], 0);
TextDrawBackgroundColor(TextDraws[1], 255);
TextDrawFont(TextDraws[1], 4);
TextDrawSetProportional(TextDraws[1], 0); 
If you can help me i would thank you a million.
Did you create this code in the TextDraw editor or got it ready from another post?
Follow the steps of the tuturial and create your own code in the editor. It worked perfectly for me.
Reply
#3

Your problem is: https://imgur.com/rzI0LzK
The file name is logo game and you're trying to load overlay.
Reply
#4

Quote:
Originally Posted by JR_Junior
Посмотреть сообщение
Did you create this code in the TextDraw editor or got it ready from another post?
Follow the steps of the tuturial and create your own code in the editor. It worked perfectly for me.
Could you show me an example of how you added the textdraw? At the time of creating the textdraw, i had problems with it.
Reply
#5

Quote:
Originally Posted by JR_Junior
Посмотреть сообщение
Your problem is: https://imgur.com/rzI0LzK
The file name is logo game and you're trying to load overlay.
First rename your logo to: logo_game and save the txd file.

Quote:
Originally Posted by dani18
Посмотреть сообщение
Could you show me an example of how you added the textdraw? At the time of creating the textdraw, i had problems with it.
After, fix your code to:
PHP код:
AddSimpleModel(-119379, -2000"object.dff""textdrawtest.txd"); 
TextDraws[1] = TextDrawCreate(145.33335829.311109"mdl-2000:logo_game"); 
TextDrawTextSize(TextDraws[1], 350.000000265.000000); 
TextDrawAlignment(TextDraws[1], 1); 
TextDrawColor(TextDraws[1], -1); 
TextDrawSetShadow(TextDraws[1], 0); 
TextDrawBackgroundColor(TextDraws[1], 255); 
TextDrawFont(TextDraws[1], 4); 
TextDrawSetProportional(TextDraws[1], 0); 
Reply
#6

Quote:
Originally Posted by JR_Junior
Посмотреть сообщение
First rename your logo to: logo_game and save the txd file.



After, fix your code to:
PHP код:
AddSimpleModel(-119379, -2000"object.dff""textdrawtest.txd"); 
TextDraws[1] = TextDrawCreate(145.33335829.311109"mdl-2000:logo_game"); 
TextDrawTextSize(TextDraws[1], 350.000000265.000000); 
TextDrawAlignment(TextDraws[1], 1); 
TextDrawColor(TextDraws[1], -1); 
TextDrawSetShadow(TextDraws[1], 0); 
TextDrawBackgroundColor(TextDraws[1], 255); 
TextDrawFont(TextDraws[1], 4); 
TextDrawSetProportional(TextDraws[1], 0); 
This shit still does not appear.
Even, i create another file with the name "logo" and it does not work either.
Reply
#7

Quote:
Originally Posted by dani18
Посмотреть сообщение
This shit still does not appear.
Even, i create another file with the name "logo" and it does not work either.
You need to create a new code.
Use the texdraw editor to create a new code, but this time with the correct file names.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)