SA-MP Forums Archive
Location - Textdraw. Please Help Me! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Location - Textdraw. Please Help Me! (/showthread.php?tid=74977)



Location - Textdraw. Please Help Me! - bpeterson - 27.04.2009

Hi All!
I have a big problem what i can't resolve. I have Mabako's location script and i want to change the gametext into textdraw.
Here is the codes:

Top:
pawn Код:
new Text:location[MAX_PLAYERS];
Create TextDraw:
pawn Код:
for(new i=0; i<MAX_PLAYERS_; i++)
{
if(IsPlayerConnected(i))
{
//locationtd
new string[256];
format(string,sizeof(string),"p%dzone",zones[j][zone_name],zones[player_zone_before][zone_name]);
location[i] = TextDrawCreate(14.000000,431.000000,string);
TextDrawAlignment(location[i],0);
TextDrawBackgroundColor(location[i],0x000000ff);
TextDrawFont(location[i],2);
TextDrawLetterSize(location[i],0.299999,1.000000);
TextDrawColor(location[i],0xffffffff);
TextDrawSetOutline(location[i],1);
TextDrawSetProportional(location[i],1);
TextDrawSetShadow(location[i],1);
//====
But it not gives error just not working .
Complete location script:
http://pastebin.com/f6c29b2c6

Please help me!



Re: Location - Textdraw. Please Help Me! - bpeterson - 27.04.2009

Help please!


Re: Location - Textdraw. Please Help Me! - yom - 27.04.2009

Try
pawn Код:
location[i] = TextDrawCreate(14.000000,431.000000,zones[j][zone_name]);
You don't need new string and format.

And then you have to show it to the player.


Re: Location - Textdraw. Please Help Me! - bpeterson - 28.04.2009

Wow thx it works!
Another problem:
When i went to for example the strip to the emerald isle it inscribed the emerald isle text to the strip text...
How can I fix it?


Re: Location - Textdraw. Please Help Me! - bpeterson - 28.04.2009

Please help me!


Re: Location - Textdraw. Please Help Me! - bpeterson - 28.04.2009

BUMP!


Re: Location - Textdraw. Please Help Me! - yom - 28.04.2009

Triple post in less than 4 hours

If no one reply that mean no one know, or want to help because of the poor description of the problem.