SA-MP Forums Archive
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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Textdraw problem (/showthread.php?tid=241250)



Textdraw problem - GiS - 17.03.2011

Hey,

I can't use TextDrawCreate(607.000000, 326.000000, PlayerInfo[playerid][username]); in OnGameModeInit because of the following error:

error 017: undefined symbol "playerid"

What can I do to show the username in the textdraw without using playerid?


Re: Textdraw problem - Stigg - 17.03.2011

Use it under OnPlayerconnect.


Re: Textdraw problem - GiS - 17.03.2011

Hmm the server crashes if I got it there while joining the game..


Re: Textdraw problem - tanush - 17.03.2011

How about on player spawn xD


Re: Textdraw problem - GiS - 17.03.2011

Well I need the textdraws earlyer...


Re: Textdraw problem - Stigg - 17.03.2011

I already told you, use it under OnPlayerconnect.


Re: Textdraw problem - GiS - 17.03.2011

Quote:
Originally Posted by GiS
Посмотреть сообщение
Hmm the server crashes if I got it there while joining the game..
I already wrote you a problem regarding this (:


Re: Textdraw problem - Stigg - 17.03.2011

Quote:
Originally Posted by GiS
Посмотреть сообщение
I already wrote you a problem regarding this (:
If your using it correctly, it wont crash the game, i know this because thats where i have some of mine.


Re: Textdraw problem - GiS - 17.03.2011

Solved