TextDraw 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)
+--- Thread: TextDraw Problem (
/showthread.php?tid=402146)
TextDraw Problem -
DJTunes - 25.12.2012
So my pawno compiler reads the following:
Код:
error 017: undefined symbol "gMyText"
error 017: undefined symbol "MyText"
error 017: undefined symbol "gMyText"
Let's go to the line.
This is what my TextDraws say on OnGameModeInit
Код:
//Text Draws
gMyText = TextDrawCreate(320.0, 240.0, "Modern Warfare");
//Text Draw Create
MyText = TextDrawCreate(320, 320, "Modern Warfare");
Then we have one more error on OnPlayerConnect:
Код:
TextDrawShowForPlayer(playerid, gMyText);
See anything I'm missing or did wrong?
Re: TextDraw Problem -
DaRk_RaiN - 25.12.2012
Re: TextDraw Problem -
DJTunes - 25.12.2012
Quote:
Originally Posted by DaRk_RaiN
|
Thanks!
I still have 2 errors left.
Код:
undefined symbol "MyText"
undefined symbol "gMyText"
Re: TextDraw Problem -
DaRk_RaiN - 25.12.2012
Make sure you put these defines under the includes, and you'll get no errors.
Re: TextDraw Problem -
DJTunes - 25.12.2012
I've put it under the includes, but now I have one more error
Код:
error 017: undefined symbol "gMyText"
Re: TextDraw Problem -
DJTunes - 25.12.2012
Wait. Nevermind, Fixed! Thanks man