[Problem] I Can't see TextDraw
#1

I have a problem, I was create a some textdraws (with zamaroht's TDE) and when I put the code in the GM, i haven't warnings and errors, but when i connect to server, i can't see any textdraw I've created (Or I can see 1 and I can't see others)

Sorry for my bad English... Please help.

TD Codes:

On top of script:
Код:
new Text:logo0;
new Text:logo1;
new Text:logo2;
new Text:logo3;
In OnGameModeInit:
Код:
public OnGameModeInit()
{
	logo0 = TextDrawCreate(501.000000, 2.000000, "Balkan World");
	TextDrawBackgroundColor(logo0, 255);
	TextDrawFont(logo0, 2);
	TextDrawLetterSize(logo0, 0.440000, 1.200000);
	TextDrawColor(logo0, -1);
	TextDrawSetOutline(logo0, 0);
	TextDrawSetProportional(logo0, 1);
	TextDrawSetShadow(logo0, 1);

	logo1 = TextDrawCreate(530.000000, 430.000000, "by Mark Williams");
	TextDrawBackgroundColor(logo1, 255);
	TextDrawFont(logo1, 0);
	TextDrawLetterSize(logo1, 0.500000, 1.400000);
	TextDrawColor(logo1, -16776961);
	TextDrawSetOutline(logo1, 0);
	TextDrawSetProportional(logo1, 1);
	TextDrawSetShadow(logo1, 1);

	logo2 = TextDrawCreate(579.000000, 16.000000, "v");
	TextDrawBackgroundColor(logo2, 255);
	TextDrawFont(logo2, 2);
	TextDrawLetterSize(logo2, 0.330000, 1.000000);
	TextDrawColor(logo2, -1);
	TextDrawSetOutline(logo2, 0);
	TextDrawSetProportional(logo2, 1);
	TextDrawSetShadow(logo2, 1);

	logo3 = TextDrawCreate(591.000000, 13.000000, "3.0");
	TextDrawBackgroundColor(logo3, 255);
	TextDrawFont(logo3, 2);
	TextDrawLetterSize(logo3, 0.500000, 1.400000);
	TextDrawColor(logo3, -65281);
	TextDrawSetOutline(logo3, 0);
	TextDrawSetProportional(logo3, 1);
	TextDrawSetShadow(logo3, 1);
I have more codes at the OnGameModeInit, so i didn't put "}" at the end of the TD code.... If I need more things to do, please say
Reply
#2

Read the whole created file. If you did, you would've seen this:

//You can now use TextDrawShowForPlayer(-ForAll), TextDrawHideForPlayer(-ForAll) and
//TextDrawDestroy functions to show, hide, and destroy the textdraw.
Reply
#3

O yeah, that's right. But, what I need to type and where? Thank you anyway
Reply
#4

You can put it onplayerconnect, or onplayerspawn
Reply
#5

Okay.... Thanks very much Problem solved...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)