[Help] Textrdaw Problem... - 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: [Help] Textrdaw Problem... (
/showthread.php?tid=245752)
[Help] Textrdaw Problem... -
Master_Gangster - 01.04.2011
Okay so every time I create a text-draw through my own GameMode and I show it when a player connects/spawns the text-draw does not show for some reason... any help?
OnPlayerConnect();
Код:
TextDrawShowForPlayer(playerid, Web);
OnGameModeInit();
Код:
Web = TextDrawCreate(495.000000, 10.000000, "www.cod-sr.tk");
TextDrawBackgroundColor(Web, 255);
TextDrawFont(Web, 1);
TextDrawLetterSize(Web, 0.330000, 1.200000);
TextDrawColor(Web, 10040319);
TextDrawSetOutline(Web, 0);
TextDrawSetProportional(Web, 1);
TextDrawSetShadow(Web, 1);
and YES I did define the Textdraw at the top:
Any ideas?
Re: [Help] Textrdaw Problem... -
mprofitt - 01.04.2011
is the player spawned?
Re: [Help] Textrdaw Problem... -
Master_Gangster - 01.04.2011
Quote:
Originally Posted by mprofitt
is the player spawned?
|
well as I said the player has only connected not yet spawned. might that be the problem?
EDIT: can't be the problem I guess.
I have this on, OnPlayerSpawn() and still it doesn't show:
Код:
TextDrawShowForAll(ScriptVer);
AW: [Help] Textrdaw Problem... -
Manuel1948 - 01.04.2011
Try with TextDrawShowForPlayer(playerid, Web); on OnPlayerConnect and please write a hexadecimal colour-codes in TextDraw Definition, not anything.
And why you show TextDraw ScriptVer to AllPlayers if you want to show Web?
Re: AW: [Help] Textrdaw Problem... -
Master_Gangster - 02.04.2011
Quote:
Originally Posted by Manuel1948
Try with TextDrawShowForPlayer(playerid, Web); on OnPlayerConnect and please write a hexadecimal colour-codes in TextDraw Definition, not anything.
And why you show TextDraw ScriptVer to AllPlayers if you want to show Web?
|
Because the website shows for each individual player.
and the version of the script shows for every player.
that said, I want it to prevent any problems.
but I will try it.