[Ajuda] Bug estranho
#4

Quote:
Originally Posted by renato989920
Посмотреть сообщение
pawn Код:
new Text:Textdraw0[MAX_PLAYERS];
public OnGameModeInit()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    Textdraw0[i] = TextDrawCreate(39.000000, 285.000000, "--");//text draw do veiculo
    TextDrawBackgroundColor(Textdraw0[i], 255);
    TextDrawFont(Textdraw0[i], 3);
    TextDrawLetterSize(Textdraw0[i], 0.500000, 1.000000);
    TextDrawColor(Textdraw0[i], 16711935);
    TextDrawSetOutline(Textdraw0[i], 1);
    TextDrawSetProportional(Textdraw0[i], 1);
    TextDrawTextSize(Textdraw0[i], 187.000000, 549.000000);

    //continue o resto...
    }
Por que a loop no OnGameModeInit?
E por que Text:Textdraw0[MAX_PLAYERS] ?

Nгo precisa de loop no OnGameModeInit para criar o TextDraw, e o TextDraw0[MAX_PlAYERS]; nгo й usado em um GameModeInit.
Modo de uso do [MAX_PLAYERS] :
Admin[playerid] = 0; ou if(Admin[playerid] == 1)
Reply


Messages In This Thread
Bug estranho - by Bruno Alves - 11.05.2014, 02:52
Re: Bug estranho - by DoN_ReNaTo - 11.05.2014, 03:07
Re: Bug estranho - by Bruno Alves - 11.05.2014, 03:12
Re: Bug estranho - by MultiKill - 11.05.2014, 03:42
Re: Bug estranho - by DoN_ReNaTo - 11.05.2014, 03:52
Re: Bug estranho - by MultiKill - 11.05.2014, 03:59
Re: Bug estranho - by @Riichard - 11.05.2014, 04:03
Re: Bug estranho - by Bruno Alves - 11.05.2014, 04:09
Re: Bug estranho - by DoN_ReNaTo - 11.05.2014, 04:34

Forum Jump:


Users browsing this thread: 3 Guest(s)