TextDraw not showing, first time using TextDraw. - 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 showing, first time using TextDraw. (
/showthread.php?tid=280647)
TextDraw not showing, first time using TextDraw. -
Jack_Leslie - 02.09.2011
So this is my first time using TextDraw and it doesn't seem to be showing on the screen. Here's what I have:
pawn Код:
new Text:Classtext[MAX_PLAYERS];
pawn Код:
Classtext[playerid] = TextDrawCreate(2482.577880, -1661.032836,"Grove St. Gangsters");
TextDrawShowForPlayer(playerid,Classtext[playerid]);
TextDrawColor(Classtext[playerid], COLOR_GROVES);
It doesn't show.
Re: TextDraw not showing, first time using TextDraw. -
Davz*|*Criss - 02.09.2011
You don't need MAX_PLAYERS for that.
Try this:
pawn Код:
Classtext = TextDrawCreate(2482.577880, -1661.032836,"Grove St. Gangsters");
TextDrawShowForPlayer(playerid,Classtext);
TextDrawColor(Classtext, COLOR_GROVES);
Its already showing to player.
Re: TextDraw not showing, first time using TextDraw. -
emokidx - 02.09.2011
Quote:
Originally Posted by Jack_Leslie
So this is my first time using TextDraw and it doesn't seem to be showing on the
TextDrawCreate(2482.577880, -1661.032836,"Grove St. Gangsters");
|
isnt it out of the screen?
the "2482" and "-1661"
Re: TextDraw not showing, first time using TextDraw. -
Jack_Leslie - 02.09.2011
Quote:
Originally Posted by Davz*|*Criss
You don't need MAX_PLAYERS for that.
Try this:
pawn Код:
Classtext = TextDrawCreate(2482.577880, -1661.032836,"Grove St. Gangsters"); TextDrawShowForPlayer(playerid,Classtext); TextDrawColor(Classtext, COLOR_GROVES);
Its already showing to player.
|
Didn't work.
@Emo, I'm not sure.
Re: TextDraw not showing, first time using TextDraw. -
Davz*|*Criss - 02.09.2011
Quote:
Originally Posted by emokidx111
isnt it out of the screen?
the "2482" and "-1661" 
|
I hope so, Its out of the screen.
EDIT: It must work, But did you created that text with some type of InGame Textdraw by Zamaroth?
If yes and if ingame you saw the text then it will work.
Re: TextDraw not showing, first time using TextDraw. -
Jack_Leslie - 02.09.2011
It was because it was out of the screen, so I changed it to 123.0, 123.0 and it worked.
Thanks guys.