TextDraw
#1

When using this code for my textdraw:
Code:
OnGameModeInit:
format(string, sizeof(string),"~w~%s  ]  By: %s  ]  Time left: %d:%d ", MisName, Author,RoundTimeMin, RoundTimeSec);
	Textdraw0 = TextDrawCreate(26.000000, 435.000000, "_");
	TextDrawBackgroundColor(Textdraw0, 255);
	TextDrawFont(Textdraw0, 2);
	TextDrawLetterSize(Textdraw0, 0.500000, 1.200000);
	TextDrawColor(Textdraw0, 16711935);
	TextDrawSetOutline(Textdraw0, 0);
	TextDrawSetProportional(Textdraw0, 1);
	TextDrawSetShadow(Textdraw0, 1);
	TextDrawUseBox(Textdraw0, 1);
	TextDrawBoxColor(Textdraw0, 255);
	TextDrawTextSize(Textdraw0, 609.000000, 5.000000);
	
	TextDrawSetString(Textdraw0,string);
	TextDrawShowForAll(Textdraw0);

OnPlayerConnect:
    TextDrawShowForPlayer(playerid, Textdraw0);
I get this:
http://ft.fckitupload.com/yI/samp405.png
(The black box on the bottom).


The problem seems to be the string, but what's wrong with it?
Reply


Messages In This Thread
TextDraw - by Infinity - 02.06.2010, 15:38
Re: TextDraw - by MastahServers - 02.06.2010, 15:42
Re: TextDraw - by Infinity - 02.06.2010, 15:43
Re: TextDraw - by Infinity - 02.06.2010, 17:15
Re: TextDraw - by [NYRP]Mike. - 02.06.2010, 20:25
Re: TextDraw - by Infinity - 02.06.2010, 20:58

Forum Jump:


Users browsing this thread: 1 Guest(s)