[help] Textdraw not working - 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: [help] Textdraw not working (
/showthread.php?tid=107140)
[help] Textdraw not working -
Mowgli - 08.11.2009
ive places thi under ongamemodeinit, it compiles but i cant see textdraws wen i connect to the server
Код:
Textdraw0 = TextDrawCreate(361.000000,433.000000,"CTF");
Textdraw2 = TextDrawCreate(394.000000,1.000000,"Gang Team: [%s] Mafia Team: [%s]");
new string[128];
format(string, sizeof(string), "Mafia Score: %d | Gang Score: %d", mafiascore, gangscore);
TextDrawSetString(Textdraw2, string);
TextDrawAlignment(Textdraw0,0);
TextDrawAlignment(Textdraw2,0);
TextDrawBackgroundColor(Textdraw0,0xff0000cc);
TextDrawBackgroundColor(Textdraw2,0x0000ffcc);
TextDrawFont(Textdraw0,3);
TextDrawLetterSize(Textdraw0,1.000000,1.700000);
TextDrawFont(Textdraw2,3);
TextDrawLetterSize(Textdraw2,0.399999,1.100000);
TextDrawColor(Textdraw0,0xffffffff);
TextDrawColor(Textdraw2,0xffffffff);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetOutline(Textdraw2,1);
TextDrawSetProportional(Textdraw2,1);
TextDrawSetShadow(Textdraw0,5);
TextDrawSetShadow(Textdraw2,1);
Re: [help] Textdraw not working -
Luka P. - 08.11.2009
do you have TextDrawShowForPlayer at OnPlayerConnect
Re: [help] Textdraw not working -
miokie - 08.11.2009
Btw, you need to make it like
new Text:Textdraw0[MAX_PLAYERS];
and
Textdraw0[playerid] = TextDrawCreate..
etc..
To show the player stats, if you don't the scores will get messed up and show somebody elses.