Textdraw not working. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Textdraw not working. (
/showthread.php?tid=538743)
Textdraw not working. -
Gogeta101 - 23.09.2014
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]);
Re: Textdraw not working. -
HazardouS - 23.09.2014
pawn Код:
PlayerTextDrawShow(playerid, ScoreTextdraw[playerid]);
Re: Textdraw not working. -
Gogeta101 - 23.09.2014
Does not work HazardouS
Re: Textdraw not working. -
SWGamer - 24.09.2014
Код:
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);