How to show textdraw[MAX_PLAYERS] show for a player?
#1

Код:
new Text:pData[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
pData[playerid] = TextDrawCreate(154.200073, 146.346710, "My data");
    TextDrawLetterSize(pData[playerid], 0.317999, 1.338666);
    TextDrawAlignment(pData[playerid], 1);
    TextDrawColor(pData[playerid], -1);
    TextDrawSetShadow(pData[playerid], 0);
    TextDrawSetOutline(pData[playerid], 1);
    TextDrawBackgroundColor(pData[playerid], 51);
    TextDrawFont(pData[playerid], 1);
    TextDrawSetProportional(pData[playerid], 1);
}
CMD:showscore(playerid, params[])
{
      TextDrawShowForPlayer(playerid, pData[MAX_PLAYERS]);
      return 1;
}

//Show all players data for the player who use /showscore.
Reply
#2

pData[playerid]
PHP код:
TextDrawShowForPlayer(playeridpData[playerid]); 
And use PlayerTextDraws better
Reply
#3

Use this: https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)