02.06.2010, 15:38
When using this code for my textdraw:
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?
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);
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?