[help] Textdraw not working
#1

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);
Reply
#2

do you have TextDrawShowForPlayer at OnPlayerConnect
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)