SA-MP Forums Archive
Textdraws - 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: Textdraws (/showthread.php?tid=393727)



Textdraws - CityWorld - 19.11.2012

Hello
I have a problem
When there are 19 players the textdraws are okay but when comes 20/21/22 players or i think 30+ i dont kno'w then the textdraws arent working anymore for them(20/30+ players)

Here an etc.
I when i load a fs with textdraw and 15+ players are its working then when comes 20-22...+ players and when i load the fs againt it's not working it's not showing

(etc. the keypad is not working too when there comes more players)



Sorry for my bad english



Re: Textdraws - park4bmx - 19.11.2012

show how the textdraw is created pls


Re: Textdraws - CityWorld - 22.11.2012

here is one textdraw etc

new Text:txtAnimHelper;

//Ongamemodeinit
txtAnimHelper = TextDrawCreate(610.0, 400.0,"~b~~k~~PED_LOCK_TARGET~ ~w~zt o stop with the animation...");
TextDrawUseBox(txtAnimHelper, 0);
TextDrawFont(txtAnimHelper, 2);
TextDrawSetShadow(txtAnimHelper,0); // no shadow
TextDrawSetOutline(txtAnimHelper,1); // thickness 1
TextDrawBackgroundColor(txtAnimHelper,0x000000FF);
TextDrawColor(txtAnimHelper,0xFFFFFFFF);
TextDrawAlignment(txtAnimHelper,3); // align right


and there is ... TextDrawShowForPlayer(playerid,txtAnimHelper);


Re: Textdraws - park4bmx - 22.11.2012

do you creat them under
OnPlayerConnect
if that the case then your creating public textdraws multiple times.


Re: Textdraws - CityWorld - 24.11.2012

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
do you creat them under
OnPlayerConnect
if that the case then your creating public textdraws multiple times.
yes they are under onplayerconnect


Re: Textdraws - park4bmx - 24.11.2012

move it to OnGamemodeInt or OnFilterScriptInt
because you create it multiple times. and it runs out of the limit