TextDrawShowForPlayer Doesn't Work!
#1

Hi I'm using 0.3x server files and when I'm inserting some textdraws in the code it doesn't show them up in the server..

heres example for code:

Defined the Textdraw name.
Код:
new Text:WebTD;
This is how textdraw created.
Код:
	WebTD = TextDrawCreate(36.000000, 430.000000,"~h~www.neurotic.boards.net");
	TextDrawBackgroundColor(WebTD, 255);
	TextDrawFont(WebTD,2);
	TextDrawSetShadow(WebTD,0);
	TextDrawSetOutline(WebTD,1);
	TextDrawAlignment(WebTD,1);
	TextDrawLetterSize(WebTD,0.200000,1.000000);
	TextDrawColor(WebTD,COLOR_WHITE);
	TextDrawSetOutline(WebTD, 1);
Then I want it to be shown so I use for every connected player.
Under: stock spawnchar(playerid)
Код:
TextDrawShowForPlayer(playerid, WebTD);
Then under: public OnPlayerSpawn(playerid)
Код:
SpawnChar(playerid);
This textdraw doesn't work.
Either way when i try use TextdrawShowForPlayer under OnPlayerConnect it still it doesn't show it in the server... Please help! what to do ? :/
Reply
#2

I dunno if itll help, but use CreatePlayerTextDraw
Reply
#3

Quote:
Originally Posted by Mattakil
Посмотреть сообщение
I dunno if itll help, but use CreatePlayerTextDraw
Those are per-player textdraws such as textdraws for showing the player's statistics.

Whenever it's about a textdraw that won't be changed for the players, general textdraws is what he needs - what he already uses actually.
Reply
#4

Guys, I'm using the general textdraws to show server info when player joins the game.

Clock,Website,Server Name <- all of those aren't shown in-game. while the code is correct.
I'm sure i didn't went off limit's and thats akward to have this problem because in the server-log there isn't bad things which can point on the problem..
Reply
#5

*Bump*

Please some help! TextDrawShowForPlayer is in the script and its not working in the server...

Plugins I use :
Streamer sscanf Whirlpool gvar

I can't understand why its not working...

Код:
forward ShowArea(playerid);
public ShowArea(playerid)
{
	TextDrawShowForPlayer(playerid, Area);
	TextDrawShowForPlayer(playerid, Area1);
	TextDrawShowForPlayer(playerid, Area2);
	TextDrawShowForPlayer(playerid, Area3);
	TextDrawShowForPlayer(playerid, Area4);
	TextDrawShowForPlayer(playerid, Area5);
}
Under OnPlayerConnect(playerid)
Код:
   	ShowArea(playerid);
Reply
#6

I have the same problem :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)