Textdraw Problem
#1

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

pawn Код:
new Text:NameText;
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;
}
Reply
#3

Tnaks a lot, i will try this tomorrow.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)