TextDraw Won't Show -
juuleman - 05.04.2010
Hi GuyZ,
I got a problem, i made a textdraw like this but it isnt there...:
New:
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
Re: TextDraw Won't Show -
Peep - 05.04.2010
what you mean "its isnt there " its on wrong place or it doesnt shown ?
Re: TextDraw Won't Show -
juuleman - 05.04.2010
Isnt shown.
Re: TextDraw Won't Show -
~JDS - 05.04.2010
Код:
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 ]
OnGameModeInit:
pawn Код:
ecrls = TextDrawCreate(4, 457, "EC-RLS"); . . .
|
https://sampwiki.blast.hk/wiki/TextDrawCreate
Re: TextDraw Won't Show -
Beaver07 - 05.04.2010
Quote:
Originally Posted by [ECR
SancheZ ]
Hi GuyZ,
I got a problem, i made a textdraw like this but it isnt there...:
New:
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
Re: TextDraw Won't Show -
Carlton - 05.04.2010
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:
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.
Re: TextDraw Won't Show -
Beaver07 - 05.04.2010
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
Re: TextDraw Won't Show -
juuleman - 06.04.2010
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...
Re: TextDraw Won't Show -
Andy_McKinley - 06.04.2010
For example:
pawn Код:
OnPlayerConnect
TextDrawShowForPlayer(playerid, ecrls);
Re: TextDraw Won't Show -
juuleman - 06.04.2010
Quote:
Originally Posted by DarkPhoenix
For example:
pawn Код:
OnPlayerConnect
TextDrawShowForPlayer(playerid, ecrls);
|
Yes i already have that...