need help with textdraws -
DeathTone - 04.12.2011
Im fairly new to textdraws, but I have a timer that destroys a textdraw and creates it with an updated number (countdown). I have two other textdraws that I use for informational stuff but they instantly disapear after being created, this only happens when my timer is running. One is called Text

ite and it gets showed to everyone. The timer is called Text:timer and it gets destroyed, recreated with an updated value every second, and my Text

ite disapears after a second the server is started. I currently am doing this:
new Text:Site[MAX_PLAYERS];
And creating it / showing it at OnPlayerConnect, it works but I need help fixing this problem, as I dont want to create every textdraw on every player connect, I want to use ShowTextdrawforall. Can anyone help me out?
Re: need help with textdraws -
SnG.Scot_MisCuDI - 04.12.2011
If you are wanting to show a text draw to the player that connects, here is what you need.
GameTextForPlayer(playerid,"message",time (in miliseconds),text draw number);
example:
pawn Код:
public OnPlayerConnect(playerid)
GameTextForPlayer(playerid,"message",7000,3);
Re: need help with textdraws -
Mike_Peterson - 04.12.2011
Quote:
Originally Posted by googamalugafoo
If you are wanting to show a text draw to the player that connects, here is what you need.
GameTextForPlayer(playerid,"message",time (in miliseconds),text draw number);
example:
pawn Код:
public OnPlayerConnect(playerid)
GameTextForPlayer(playerid,"message",7000,3);
|
Uhhm, the last argument of GameTextForPlayer is style, since it has different styles (like Wasted etc..)
And GameTextForPlayer has nothing to do with textdraws..
So, please don't post something if you don't know it yourself.. (No offense)
Re: need help with textdraws -
Thresholdold - 04.12.2011
Quote:
Originally Posted by Mike_Peterson
Uhhm, the last argument of GameTextForPlayer is style, since it has different styles (like Wasted etc..)
And GameTextForPlayer has nothing to do with textdraws..
So, please don't post something if you don't know it yourself.. (No offense)
|
GameTextForPlayer is still a version of a textdraw... I just don't think it's the textdraw he is after...
If you want to have a textdraw that won't destroy itself permanently, try relocating it to OnPlayerSpawn...
if that doesn't work, wait for a reply from more advanced scripters :P
Re: need help with textdraws -
DeathTone - 04.12.2011
Yeah im looking for help on textdraws, not gametextforplayer. Thanks anyways, ill wait till somone else posts.
Re: need help with textdraws -
rapidhost - 04.12.2011
You mean like TextLabels?
Or those that are like..
Under your map showing your website?
Re: need help with textdraws -
DeathTone - 05.12.2011
Bump
I still need help with this