28.08.2014, 21:40
No topo coloca no fim das variбveis a definiзгo [MAX_PLAYERS]
Em OnGamemodeInit coloca esse loop acima das textdraws:
Nгo esquece de colocar no fim da variбvel o simbolo "i":
Na public OnPlayerSpawn coloca [playerid] no fim:
pawn Код:
//Exemplo
new Text:Health[MAX_PLAYERS];
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
//Cуdigo das TextDraws aqui
}
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);
pawn Код:
//Exemplo
TextDrawShowForPlayer(playerid, Health[playerid]);