[Ajuda] Bug estranho!
#2

No topo coloca no fim das variбveis a definiзгo [MAX_PLAYERS]
pawn Код:
//Exemplo
new Text:Health[MAX_PLAYERS];
Em OnGamemodeInit coloca esse loop acima das textdraws:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
    {
//Cуdigo das TextDraws aqui
    }
Nгo esquece de colocar no fim da variбvel o simbolo "i":
pawn Код:
//Exemplo
    Health[i] = TextDrawCreate(566.000000, 67.000000, "100%");
    TextDrawBackgroundColor(Health[i], 255);
    TextDrawFont(Health[i], 1);
    TextDrawLetterSize(Health[i], 0.219999, 0.899999);
    TextDrawColor(Health[i], -1);
    TextDrawSetOutline(Health[i], 1);
    TextDrawSetProportional(Health[i], 1);
Na public OnPlayerSpawn coloca [playerid] no fim:
pawn Код:
//Exemplo
TextDrawShowForPlayer(playerid, Health[playerid]);
Reply


Messages In This Thread
Bug estranho! - by best95 - 28.08.2014, 16:20
Re: Bug estranho! - by Spectral - 28.08.2014, 21:40
Re: Bug estranho! - by best95 - 29.08.2014, 04:05
Re: Bug estranho! - by Spectral - 29.08.2014, 04:41

Forum Jump:


Users browsing this thread: 1 Guest(s)