TextDraw not showing, first time using TextDraw.
#1

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.
Reply
#2

You don't need MAX_PLAYERS for that.

Try this:

pawn Код:
new Text:Classtext;
pawn Код:
Classtext = TextDrawCreate(2482.577880, -1661.032836,"Grove St. Gangsters");
TextDrawShowForPlayer(playerid,Classtext);
TextDrawColor(Classtext, COLOR_GROVES);
Its already showing to player.
Reply
#3

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"
Reply
#4

Quote:
Originally Posted by Davz*|*Criss
Посмотреть сообщение
You don't need MAX_PLAYERS for that.

Try this:

pawn Код:
new Text:Classtext;
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.
Reply
#5

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.
Reply
#6

It was because it was out of the screen, so I changed it to 123.0, 123.0 and it worked.

Thanks guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)