Textdraw help. - 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 help. (
/showthread.php?tid=363091)
Textdraw help. -
TaLhA XIV - 26.07.2012
PHP код:
paycheck[playerid] = CreatePlayerTextDraw(playerid, 240.0, 580.0, "You got the paycheck");
PlayerTextDrawShow(playerid, paycheck[playerid]);
PlayerTextDrawAlignment(playerid, paycheck[playerid], 3);
PlayerTextDrawColor(playerid, paycheck[playerid], 0xFF0000FF); // Red text
Why is this not working?Please help.
Re: Textdraw help. -
Misiur - 26.07.2012
https://sampwiki.blast.hk/wiki/PlayerTextDrawShow
Re: Textdraw help. -
Littlehelper - 26.07.2012
What is actually wrong?
Re: Textdraw help. -
TaLhA XIV - 26.07.2012
It does not show up the textdraw.
Re: Textdraw help. -
Misiur - 26.07.2012
Once again, did you use PlayerTextDrawShow? If not, it won't appear, even though it's created.
Re: Textdraw help. -
TaLhA XIV - 26.07.2012
It is shown over there.Please someone create it for me or fix this please.
Re: Textdraw help. -
nton - 26.07.2012
This is the correct format
PHP код:
new Text:FR2012;//on top of your script
public OnGameModeInit()
{
FR2012 = TextDrawCreate(51, 321, "FR-2012");
TextDrawLetterSize(Text:FR2012, 0.5, 1.5);
TextDrawTextSize(Text:FR2012, 1, 2);
TextDrawAlignment(Text:FR2012, 0);
TextDrawColor(Text:FR2012, -65366);
TextDrawUseBox(Text:FR2012, 0);
TextDrawSetShadow(Text:FR2012, 2);
TextDrawBoxColor(Text:FR2012, -1347440726);
TextDrawSetOutline(Text:FR2012, 2);
TextDrawBackgroundColor(Text:FR2012, 170);
TextDrawFont(Text:FR2012, 3);
TextDrawSetProportional(Text:FR2012, 1);
}
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, FR2012);
return 1;
}