TextDraw Won't Show
#1

Hi GuyZ,

I got a problem, i made a textdraw like this but it isnt there...:

New:

pawn Код:
new Text:ecrls;

OnPlayerConnect:

pawn Код:
TextDrawShowForPlayer(playerid, ecrls);

OnGameModeInit:

pawn Код:
ecrls = TextDrawCreate(4, 457, "EC-RLS");
TextDrawAlignment(ecrls, 1);
TextDrawFont(ecrls, 3);
TextDrawLetterSize(ecrls, 0.3, 0.3);
TextDrawColor(ecrls, 0xFFFF00FF);
Can someone help me please?

Greetings,
[ECR]SancheZ
Reply
#2

what you mean "its isnt there " its on wrong place or it doesnt shown ?
Reply
#3

Isnt shown.
Reply
#4

Код:
TextDrawCreate(Float:x, Float:y, text[]);
This function returns the ID of the created textdraw.
But why did you declare "ecrls" as a Text?

Quote:
Originally Posted by [ECR
SancheZ ]

pawn Код:
new Text:ecrls;
OnGameModeInit:

pawn Код:
ecrls = TextDrawCreate(4, 457, "EC-RLS");
.
.
.
https://sampwiki.blast.hk/wiki/TextDrawCreate
Reply
#5

Quote:
Originally Posted by [ECR
SancheZ ]
Hi GuyZ,

I got a problem, i made a textdraw like this but it isnt there...:

New:

pawn Код:
new Text:ecrls;

OnPlayerConnect:

pawn Код:
TextDrawShowForPlayer(playerid, ecrls);

OnGameModeInit:

pawn Код:
ecrls = TextDrawCreate(4, 457, "EC-RLS");
TextDrawAlignment(ecrls, 1);
TextDrawFont(ecrls, 3);
TextDrawLetterSize(ecrls, 0.3, 0.3);
TextDrawColor(ecrls, 0xFFFF00FF);
Can someone help me please?

Greetings,
[ECR]SancheZ
try this


pawn Код:
new Text:ecrls[MAX_PLAYERS];
OnPlayerConnect:

pawn Код:
TextDrawShowForPlayer(playerid, ecrls[playerid]);
OnGameModeInit:

pawn Код:
for(new i=0; i < MAX_PLAYERS; i++)
{
ecrls[i] = TextDrawCreate(4, 457, "EC-RLS");
TextDrawAlignment(ecrls[i], 1);
TextDrawFont(ecrls[i], 3);
TextDrawLetterSize(ecrls[i], 0.3, 0.3);
TextDrawColor(ecrls[i], 0xFFFF00FF);
}
this will just make the textdraw to each player rather than global

hope this helps
Reply
#6

Quote:
Originally Posted by Beaver07
Quote:
Originally Posted by [ECR
SancheZ ]
Hi GuyZ,

I got a problem, i made a textdraw like this but it isnt there...:

New:

pawn Код:
new Text:ecrls;

OnPlayerConnect:

pawn Код:
TextDrawShowForPlayer(playerid, ecrls);

OnGameModeInit:

pawn Код:
ecrls = TextDrawCreate(4, 457, "EC-RLS");
TextDrawAlignment(ecrls, 1);
TextDrawFont(ecrls, 3);
TextDrawLetterSize(ecrls, 0.3, 0.3);
TextDrawColor(ecrls, 0xFFFF00FF);
Can someone help me please?

Greetings,
[ECR]SancheZ
try this


pawn Код:
new Text:ecrls[MAX_PLAYERS];
OnPlayerConnect:

pawn Код:
TextDrawShowForPlayer(playerid, ecrls[playerid]);
OnGameModeInit:

pawn Код:
for(new i=0; i < MAX_PLAYERS; i++)
{
ecrls[i] = TextDrawCreate(4, 457, "EC-RLS");
TextDrawAlignment(ecrls[i], 1);
TextDrawFont(ecrls[i], 3);
TextDrawLetterSize(ecrls[i], 0.3, 0.3);
TextDrawColor(ecrls[i], 0xFFFF00FF);
}
this will just make the textdraw to each player rather than global

hope this helps
There's no point of doing that unless he wants to use TextDrawSetString and make different messages for every people which is not the case. I have a good feeling that [ECR]SancheZ's coordinates are not near the screen coordinates.
Reply
#7

ohhh i totally miss understood.. yeah i think those co-ords do look at little odd

Код:
TextDrawCreate(8.000000,426.000000,"Make me have text");
those co-ords are for a textdraw just below the map on the left try them
Reply
#8

Quote:
Originally Posted by Beaver07
ohhh i totally miss understood.. yeah i think those co-ords do look at little odd

Код:
TextDrawCreate(8.000000,426.000000,"Make me have text");
those co-ords are for a textdraw just below the map on the left try them
Okay i did what u said about the cords so now i have this:

pawn Код:
ecrls = TextDrawCreate(8.000000,426.000000,"EC-RLS");
  TextDrawAlignment(ecrls, 1);
  TextDrawFont(ecrls, 3);
  TextDrawLetterSize(ecrls, 0.3, 0.3);
  TextDrawColor(ecrls, 0xFFFF00FF);
But still it isnt there...
Reply
#9

For example:

pawn Код:
OnPlayerConnect

TextDrawShowForPlayer(playerid, ecrls);
Reply
#10

Quote:
Originally Posted by DarkPhoenix
For example:

pawn Код:
OnPlayerConnect

TextDrawShowForPlayer(playerid, ecrls);
Yes i already have that...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)