Textdraw doesn't appear
#1

Hello again,

I started to use a countdown textdraw, but it starts working only after GMX, but I would like to see it also when the server starts not only after the GMX.

Thanks.
Reply
#2

In order to receive help you're going to need to post some code.
Reply
#3

I'm using this include. https://sampforum.blast.hk/showthread.php?tid=91883 v3 ( from pastebin )
Reply
#4

But we'd sure use some code. We aren't telepaths, therefore we can't know what you did.
Reply
#5

Thanks to FS, it's enough to add

pawn Код:
TDCountDown(15, 0, 560, 20); // mins, seconds, location, location
TDCDShowForAll();
Under OnGameModeInit ( I guess )
Reply
#6

TextDrawShowForAll will only show to players who are currently in the server. So when your server starts then it's not visible to anyone because nobody was in the server when it was called.

I suggest simply using TextDrawShowForPlayer, which in the include you're using is TDCDShowForPlayer, for example:

pawn Код:
public OnPlayerConnect(playerid)
{
    TDCDShowForPlayer(playerid);
    return 1;
}
I hope that helps!
Reply
#7

Won't the countdown start over for every next player?
Reply
#8

Quote:
Originally Posted by freshOrange
Посмотреть сообщение
Won't the countdown start over for every next player?
No, that isn't initializing the countdown, that's just making the textdraw show for the player.
Reply
#9

Very well! Worked flawlessly, thank you.

Also I will take in mind your guide in signature.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)