[Ajuda] Textdraws com MAX_PLAYERS
#1

Seguinte, coloquei algumas textdraws no meu server com MAX_PLAYERS.
cokfundo[MAX_PLAYERS]; < por exemplo
Mas, as demais, sem MAX_PLAYERS nгo estгo funcionando mais como funcionavam antes.
Alguйm poderia me ajudar?
Reply
#2

Como ? Poste algo meu caro!
Reply
#3

usa o Lop no GameModeInit ¬¬
Reply
#4

kkkk tudo que eu queria foi postado

pawn Код:
cokfundo[i] = TextDrawCreate(1.0, 427.0, " ~w~[ ~b~City ~w~Of ~r~Killers~w~ ]   [~g~Forum~w~: cokbr.forumbrasil.net ]");
        TextDrawUseBox(cokfundo[i], true);
        TextDrawBoxColor(cokfundo[i], 0x00000066);
        TextDrawSetOutline(cokfundo[i], 1);
        TextDrawFont(cokfundo[i], 2);
        TextDrawSetProportional(cokfundo[i], true);
        TextDrawAlignment(cokfundo[i], 1);
        TextDrawLetterSize(cokfundo[i], 0.4, 2.0);
        TextDrawSetShadow(cokfundo[i], 1);
Isso й um Textdraw com MAX_PLAYERS.

pawn Код:
afk = TextDrawCreate(260.000000,222.000000,"~r~AFK ~w~( sair: ~g~/afkoff~w~ )");
        TextDrawSetOutline(afk, 1);
        TextDrawFont(afk, 2);
        TextDrawSetProportional(afk, true);
        TextDrawAlignment(afk, 1);
        TextDrawLetterSize(afk, 0.4, 3.0);
        TextDrawSetShadow(afk, 1);
E esse й um sem.
O problema й que quando eu coloco todos para MAX_PLAYERS, alguns nгo aparecem, e quando coloco alguns sem MAX_PLAYERS, esses nгo funcionam.
Reply
#5

tutorial >> https://sampforum.blast.hk/showthread.php?tid=147555

Modo Lop GameModeInit
pawn Код:
for(new i; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i))
        {
            TextDrawShowForPlayer(i, nometextdraw);
        }
    }
Reply
#6

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
tutorial >> https://sampforum.blast.hk/showthread.php?tid=147555

Modo Lop GameModeInit
pawn Код:
for(new i; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i))
        {
            TextDrawShowForPlayer(i, nometextdraw);
        }
    }
Nгo precisa disso.

Oq vc postou nгo tem como te ajudar... Vc estб colocando em que lugar isso ? ta mostrando corretamente ?
Reply
#7

Quote:
Originally Posted by paulor
Посмотреть сообщение
Nгo precisa disso.

Oq vc postou nгo tem como te ajudar... Vc estб colocando em que lugar isso ? ta mostrando corretamente ?
Serio *-* , Cara olha a TextDraw dele
pawn Код:
cokfundo[i] = TextDrawCreate(1.0, 427.0, " ~w~[ ~b~City ~w~Of ~r~Killers~w~ ]   [~g~Forum~w~: cokbr.forumbrasil.net ]");
        TextDrawUseBox(cokfundo[i], true);
        TextDrawBoxColor(cokfundo[i], 0x00000066);
        TextDrawSetOutline(cokfundo[i], 1);
        TextDrawFont(cokfundo[i], 2);
        TextDrawSetProportional(cokfundo[i], true);
        TextDrawAlignment(cokfundo[i], 1);
        TextDrawLetterSize(cokfundo[i], 0.4, 2.0);
        TextDrawSetShadow(cokfundo[i], 1);
¬¬
Reply
#8

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
Serio *-* , Cara olha a TextDraw dele
pawn Код:
cokfundo[i] = TextDrawCreate(1.0, 427.0, " ~w~[ ~b~City ~w~Of ~r~Killers~w~ ]   [~g~Forum~w~: cokbr.forumbrasil.net ]");
        TextDrawUseBox(cokfundo[i], true);
        TextDrawBoxColor(cokfundo[i], 0x00000066);
        TextDrawSetOutline(cokfundo[i], 1);
        TextDrawFont(cokfundo[i], 2);
        TextDrawSetProportional(cokfundo[i], true);
        TextDrawAlignment(cokfundo[i], 1);
        TextDrawLetterSize(cokfundo[i], 0.4, 2.0);
        TextDrawSetShadow(cokfundo[i], 1);
¬¬
._.
Deixa pra lб kkkk
Reply
#9

No textdraw cokfundo nгo а a necessidade de usar MAX_PLAYERS.
Manipule-o como um textdraw comum.
Reply
#10

Nгo precisa criar textdraw com loop, use https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)