SA-MP Forums Archive
Anyone knows this? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Anyone knows this? (/showthread.php?tid=249401)



Anyone knows this? - [Ha]Lommo - 18.04.2011

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.


Re: Anyone knows this? - Joyner - 18.04.2011

Where are you creating the textdraw?


Re: Anyone knows this? - [Ha]Lommo - 18.04.2011

OnGameModeInIt


Re: Anyone knows this? - Stigg - 18.04.2011

Put it under OnPlayerConnect.


Re: Anyone knows this? - [Ha]Lommo - 18.04.2011

Thanks guys, worked.


Re: Anyone knows this? - Stigg - 18.04.2011

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


Re: Anyone knows this? - Joe Staff - 18.04.2011

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