Textdraw shutdown other texdraw gamemodinit
#1

Hello guys
I use couple of textdraw in my gamemode but this part makes all the other ones not to work
now i tryed to remove this to see if that what cause the problem and it is.

Ongamemodeinit

the script:

for(new p=0; p < MAX_PLAYERS; p++){


Stats2[p] = TextDrawCreate(146.000000, 434.000000, "Level: 01");
TextDrawBackgroundColor(Stats2[p], 255);
TextDrawFont(Stats2[p], 1);
TextDrawLetterSize(Stats2[p], 0.360000, 1.000000);
TextDrawColor(Stats2[p], -1);
TextDrawSetOutline(Stats2[p], 1);
TextDrawSetProportional(Stats2[p], 1);
TextDrawSetSelectable(Stats2[p], 0);

}

why would it do this?
Reply
#2

Why are you creating a loop that goes from 0 to MAX_PLAYERS - 1?

I mean, it has to be showed to players, right?

So, use CreatePlayerTextDraw, not TextDrawCreate.
Reply
#3

First: Are You Iranian ?
And In The OnPlayerConnect Write "LoadPlayerTD(playerid);"
And Create Stock :
pawn Код:
stock LoadPlayerTD(playerid)
{
// Put Your Stats2 TD And Replace playerid for P
// Example : Stats2[playerid] = TextDrawCreate(146.000000, 434.000000, "Level: 01");
}
sorry for my bad english
don't forget +rep
Reply
#4

M0HAMMAD
tnx you helped me alot!
+rep
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)