Textdraw help
#1

Hello
i'm trying to create a textdraw that show every players them name and id
i don't know how can i repair it
Код:
new Text:tdsite20[MAX_PLAYERS];
i put it under ongamemodeinit
Код:
new playerid;
	tdsite20[playerid] = TextDrawCreate(465.000000, 432.000000, "Name & iD");
	TextDrawBackgroundColor(tdsite20[playerid], 255);
	TextDrawFont(tdsite20[playerid], 1);
	TextDrawLetterSize(tdsite20[playerid], 0.000000, 16.000000);
	TextDrawColor(tdsite20[playerid], -1);
	TextDrawSetOutline(tdsite20[playerid], 0);
	TextDrawSetProportional(tdsite20[playerid], 1);
	TextDrawSetShadow(tdsite20[playerid], 1);
	TextDrawUseBox(tdsite20[playerid], 0);
	TextDrawBoxColor(tdsite20[playerid], 85);
	TextDrawTextSize(tdsite20[playerid], 460.000000, 30.000000);
	TextDrawSetSelectable(tdsite20[playerid], 0);
and put this under onplayerconnect
Код:
	new string[128];
	format(string,sizeof(string)," %s ( %d )", RPN(playerid), playerid);
    TextDrawSetString(tdsite20[playerid], string);
    TextDrawShowForPlayer(playerid,tdsite20[playerid]);
Reply


Messages In This Thread
Textdraw help - by Airblog - 08.12.2014, 11:57
Re: Textdraw help - by HY - 08.12.2014, 12:01
Re: Textdraw help - by Clad - 08.12.2014, 12:02

Forum Jump:


Users browsing this thread: 1 Guest(s)