Textdraw not working.
#1

pawn Код:
new PlayerText:ScoreTextdraw[MAX_PLAYERS];


    // score textdraw


    new str[20];
    format(str,sizeof(str),"Score: %d",Player[playerid][pScore]);
    PlayerTextDrawSetString(playerid,PlayerText:ScoreTextdraw[playerid], str);
    ScoreTextdraw[playerid] = CreatePlayerTextDraw(playerid, 515.199829, 385.280242, "Score ");
    PlayerTextDrawLetterSize(playerid, ScoreTextdraw[playerid], 0.449999, 1.600000);
    PlayerTextDrawAlignment(playerid, ScoreTextdraw[playerid], 1);
    PlayerTextDrawColor(playerid, ScoreTextdraw[playerid], -1);
    PlayerTextDrawSetShadow(playerid, ScoreTextdraw[playerid], 0);
    PlayerTextDrawSetOutline(playerid, ScoreTextdraw[playerid], 1);
    PlayerTextDrawBackgroundColor(playerid, ScoreTextdraw[playerid], 51);
    PlayerTextDrawFont(playerid, ScoreTextdraw[playerid], 2);
    PlayerTextDrawSetProportional(playerid, ScoreTextdraw[playerid], 1);
    //Score Textdraw
public OnPlayerSpawn(playerid)
{
    PlayerTextDrawShow(playerid,PlayerText:ScoreTextdraw[playerid]);
Reply
#2

pawn Код:
PlayerTextDrawShow(playerid, ScoreTextdraw[playerid]);
Reply
#3

Does not work HazardouS
Reply
#4

Код:
new Text:ScoreTextdraw;





    new str[20];
    format(str,sizeof(str),"Score: %d",Player[playerid][pScore]);
    PlayerTextDrawSetString(playerid,ScoreTextdraw, str);
    ScoreTextdraw = CreatePlayerTextDraw(playerid, 515.199829, 385.280242, "Score ");
    PlayerTextDrawLetterSize(playerid, ScoreTextdraw, 0.449999, 1.600000);
    PlayerTextDrawAlignment(playerid, ScoreTextdraw, 1);
    PlayerTextDrawColor(playerid, ScoreTextdraw, -1);
    PlayerTextDrawSetShadow(playerid, ScoreTextdraw, 0);
    PlayerTextDrawSetOutline(playerid, ScoreTextdraw, 1);
    PlayerTextDrawBackgroundColor(playerid, ScoreTextdraw, 51);
    PlayerTextDrawFont(playerid, ScoreTextdraw, 2);
    PlayerTextDrawSetProportional(playerid, ScoreTextdraw, 1);
    
public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid, ScoreTextdraw);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)