[HELP] Textdraw not showing
#1

So I have these codes that supposed to be Player textdraws (not global).

pawn Код:
new PlayerText:Textdraw20[MAX_PLAYERS];
new PlayerText:Textdraw21[MAX_PLAYERS];
new PlayerText:Textdraw22[MAX_PLAYERS];


public OnPlayerConnect(playerid)
{
    Textdraw20[playerid] = CreatePlayerTextDraw(playerid, 37.999977, 431.573272, "2000");
    PlayerTextDrawLetterSize(playerid, Textdraw20[playerid], 0.215999, 1.380977);
    PlayerTextDrawAlignment(playerid, Textdraw20[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw20[playerid], -2147483393);
    PlayerTextDrawSetShadow(playerid, Textdraw20[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw20[playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, Textdraw20[playerid], 51);
    PlayerTextDrawFont(playerid, Textdraw20[playerid], 1);
    PlayerTextDrawSetProportional(playerid, Textdraw20[playerid], 1);

    Textdraw21[playerid] = CreatePlayerTextDraw(playerid, 120.800018, 431.075622, "1000");
    PlayerTextDrawLetterSize(playerid, Textdraw21[playerid], 0.208399, 1.495465);
    PlayerTextDrawAlignment(playerid, Textdraw21[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw21[playerid], -2147483393);
    PlayerTextDrawSetShadow(playerid, Textdraw21[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw21[playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, Textdraw21[playerid], 51);
    PlayerTextDrawFont(playerid, Textdraw21[playerid], 1);
    PlayerTextDrawSetProportional(playerid, Textdraw21[playerid], 1);

    Textdraw22[playerid] = CreatePlayerTextDraw(playerid, 211.199981, 430.577758, "Louis");
    PlayerTextDrawLetterSize(playerid, Textdraw22[playerid], 0.278400, 1.570132);
    PlayerTextDrawAlignment(playerid, Textdraw22[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw22[playerid], -2147483393);
    PlayerTextDrawSetShadow(playerid, Textdraw22[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw22[playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, Textdraw22[playerid], 51);
    PlayerTextDrawFont(playerid, Textdraw22[playerid], 1);
    PlayerTextDrawSetProportional(playerid, Textdraw22[playerid], 1);

    return 1;
}


public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid, Textdraw20[playerid]);
    TextDrawShowForPlayer(playerid, Textdraw21[playerid]);
    TextDrawShowForPlayer(playerid, Textdraw22[playerid]);
    return 1;
}

public OnPlayerUpdate(playerid)
{
    TextDrawSetString(Textdraw20[playerid], PInfo[playerid][Kills]);
    TextDrawSetString(Textdraw21[playerid], PInfo[playerid][Deaths]);
    return 1;
}
And the textdraw20 and textdraw21 doesn't show anything.

NOTE: I'm using a textdraw box below those text. If you want to see how the textdraw looks like then please let me know.

NOTE: Same goes for the other player textdraws I'm creating. It doesn't show anything!

Thanks! I really appreciate someone for the help!
Reply


Messages In This Thread
[HELP] Textdraw not showing - by roar - 24.02.2014, 09:52
Re: [HELP] Textdraw not showing - by roar - 24.02.2014, 10:45
Re: [HELP] Textdraw not showing - by $Marco$ - 24.02.2014, 11:09
Re: [HELP] Textdraw not showing - by roar - 24.02.2014, 11:46
Re: [HELP] Textdraw not showing - by Pillhead2007 - 24.02.2014, 13:04
Re: [HELP] Textdraw not showing - by roar - 25.02.2014, 08:40
Re: [HELP] Textdraw not showing - by Smileys - 25.02.2014, 08:44
Re: [HELP] Textdraw not showing - by roar - 25.02.2014, 08:56
Re: [HELP] Textdraw not showing - by Smileys - 25.02.2014, 09:02
Re: [HELP] Textdraw not showing - by Konstantinos - 25.02.2014, 09:39

Forum Jump:


Users browsing this thread: 1 Guest(s)