Anyone knows this?
#1

So, whats the problem here? The Textdraw doesn't shows up anymore..
Код:
new Text:Textdraw0[MAX_PLAYERS];

for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
    {

Textdraw0[playerid] = TextDrawCreate(245.000000, 437.000000, "01/25");
TextDrawBackgroundColor(Textdraw0[playerid], 255);
TextDrawFont(Textdraw0[playerid], 1);
TextDrawLetterSize(Textdraw0[playerid], 0.520000, 1.000000);
TextDrawColor(Textdraw0[playerid], -1);
TextDrawSetOutline(Textdraw0[playerid], 0);
TextDrawSetProportional(Textdraw0[playerid], 1);
TextDrawSetShadow(Textdraw0[playerid], 1);

}

OnPlayerConnect

TextDrawShowForPlayer(playerid, Textdraw0[playerid]);

OnPlayerEnterRaceCheckPoint

format(neewtext, sizeof(neewtext),"%d/%d",Checkpointsdone[playerid],MaxCheckpoints)
TextDrawSetString(Textdraw0[playerid], neewtextt)
Would be nice if u could help me.
Reply
#2

Where are you creating the textdraw?
Reply
#3

OnGameModeInIt
Reply
#4

Put it under OnPlayerConnect.
Reply
#5

Thanks guys, worked.
Reply
#6

Quote:
Originally Posted by [Ha]Lommo
Посмотреть сообщение
Thanks guys, worked.
No prob's, glad it's sorted for ya.
Reply
#7

Also the color code you have placed is -1... which is 0x8000000D which is next to translucent
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)