textdraw disappearing -_- - 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 disappearing -_- (
/showthread.php?tid=535030)
textdraw disappearing -_- -
Champ - 01.09.2014
Hi all.
I am facing serious problem that my textdraws are disappearing. I know that i haven't reached the maximum limit of textdraw. I may have 30-50 textdraws. As I am creating clickable textdraw. I am in need of them and will be needing more.
What actually happens is that the 3-4 textdraws that comes in the last of the sequence of all textdraws get disappeared.
Any solution availabe ?
thanks in advance.
Re: textdraw disappearing -_- -
SanAndreasMP - 01.09.2014
Did you use TextDrawShowForPlayer in all textdraws?
Re: textdraw disappearing -_- -
M0HAMMAD - 01.09.2014
I think this can help you :
http://forum.sa-mp.com/showpost.php?...26&postcount=3
Re: textdraw disappearing -_- -
Pottus - 01.09.2014
You didn't even give screenshots or code or anything.
Re: textdraw disappearing -_- -
Stanford - 01.09.2014
Are you one of those who does a loop under OnGameModeInit or OnFilterscriptInit for each player and creates global textdraws for each one of them ~ if so then convert these textdraws to CreatePlayerTextDraw and make it create it under OnPlayerConnect.
(About the loop it should be something like this):
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
TEXTDRAWPLAYER[i] = CreateTextDraw(etc....)
}
I hope I helped any feedback would be appreciated!
Re: textdraw disappearing -_- -
Champ - 02.09.2014
sorry for late reply. I was little busy.
On topic: Stanford, thanks for solution
it worked.