TextDraw Help - 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: TextDraw Help (
/showthread.php?tid=94720)
TextDraw Help -
indy-greg - 31.08.2009
It isn't showing up. Please help i seriously don't understand why it isn't working.
Top.
OnGameModeInit
Код:
test = TextDrawCreate(269, 223, "text");
TextDrawAlignment(test, 1);
TextDrawFont(test, 1);
TextDrawLetterSize(test, 3.7, 3.7);
TextDrawColor(test, 0xF5FDFAFF);
TextDrawShowForAll(test);
Re: TextDraw Help -
Clavius - 31.08.2009
I think the textdraw won't be shown to players who connected after 'TextDrawShowForAll(test)' has been used, and since that's in OnGameModeInit, nobody is connected at that time.
Try TextDrawShowForPlayer(test, playerid) in the OnPlayerConnect or OnPlayerSpawn callback.