Textdraw Problem - 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)
+--- Thread: Textdraw Problem (
/showthread.php?tid=563220)
Textdraw Problem -
WaZP - 14.02.2015
Helo everybody, i have an problem on my server with Textdraw. When on server are 2-3 players nothing wrong with them(textdraw). But when on server are 10-15 server, The Textdraw not appear for player, Why?
Example of thexdraw:
Код:
new Text:NameText[MAX_PLAYERS];
NameText[playerid] = TextDrawCreate(68.000000, 429.000000, "Nickname");
TextDrawBackgroundColor(NameText[playerid],255);
TextDrawFont(NameText[playerid],2);
TextDrawLetterSize(NameText[playerid],0.269999, 1.100000);
TextDrawColor(NameText[playerid],0xFFFFFFFF);
TextDrawSetOutline(NameText[playerid],1);
TextDrawSetProportional(NameText[playerid],1);
TextDrawShowForPlayer(playerid, NameText[playerid]);
new playername2[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
TextDrawSetString(NameText[playerid], playername2);
I apologize for my bad English.
Re: Textdraw Problem -
HY - 14.02.2015
pawn Код:
NameText = TextDrawCreate(68.000000, 429.000000, "Nickname");
TextDrawBackgroundColor(NameText,255);
TextDrawFont(NameText,2);
TextDrawLetterSize(NameText,0.269999, 1.100000);
TextDrawColor(NameText,0xFFFFFFFF);
TextDrawSetOutline(NameText, 1);
TextDrawSetProportional(NameText,1);
pawn Код:
public OnPlayerSpawn(playerid)
{
new string[32], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s", name);
TextDrawSetString(NameText, string);
return 1;
}
Re: Textdraw Problem -
WaZP - 14.02.2015
Tnaks a lot, i will try this tomorrow.