Textdraws
#1

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
Reply
#2

show how the textdraw is created pls
Reply
#3

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);
Reply
#4

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

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
Reply
#6

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


Forum Jump:


Users browsing this thread: 3 Guest(s)