[Ajuda] Textdrawn bairros
#1

Olб amigos eu criei este textdrawn para que aparece-se os nomes dos bairros da cidade, mas nгo esta aparecendo.

pawn Код:
new zones[MAX_ZONE_NAME], s[30];
    GetPlayer2DZone(playerid, zones, MAX_ZONE_NAME);
    format(s, 30, "%s", zones);
    TextDrawSetString(Bairros, s);
Caso tenha algo errado neste code me avisem!
Reply
#2

Cade o TextDrawShowForPlayer ?
Reply
#3

Cade a textdraw? a unica coisa que vejo й vocк editando a string Bairros.

O correto deve ser criar uma textdraw para o jogador e mostra-la ao jogador ao mudar de "bairro".
Reply
#4

Essa й a textdrawn.

pawn Код:
Bairros = TextDrawCreate(17 ,454 , "-");
    TextDrawFont(Bairros , 1);
    TextDrawLetterSize(Bairros , 2, 14);
    TextDrawColor(Bairros , 0xf005fcFF);
    TextDrawSetOutline(Bairros , false);
    TextDrawSetProportional(Bairros , true);
    TextDrawSetShadow(Bairros , 1);
Reply
#5

Estб errado seu codigo, o textdraw nao pode ser global e sim um para cada jogador.

OnGameModeInt
pawn Код:
for(new x = 0, y = GetMaxPlayers(); x != y; x++)
{
    Bairros[x] = TextDrawCreate(17, 454, "-");
    TextDrawFont(Bairros[x], 1);
    TextDrawLetterSize(Bairros[x], 2, 14);
    TextDrawColor(Bairros[x], 0xf005fcFF);
    TextDrawSetOutline(Bairros[x], false);
    TextDrawSetProportional(Bairros[x], true);
    TextDrawSetShadow(Bairros[x], 1);
}
pawn Код:
TextDrawSetString(Bairros[playerid], s);

TextDrawShowForPlayer(playerid, Bairros[playerid]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)