24.02.2014, 09:52
So I have these codes that supposed to be Player textdraws (not global).
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!
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;
}
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!