[Ajuda] Loop maldito
#1

Meu cуdigo:

PHP код:
//OnGameModeInit
TextDraws();
    
TD_TV[0] = TextDrawCreate(0.000000452.000000"LD_POKE:tvcorn");
    
TextDrawBackgroundColor(TD_TV[0], 255);
    
TextDrawFont(TD_TV[0], 4);
    
TextDrawLetterSize(TD_TV[0], 0.5000001.000000);
    
TextDrawColor(TD_TV[0], -1);
    
TextDrawSetOutline(TD_TV[0], 0);
    
TextDrawSetProportional(TD_TV[0], 1);
    
TextDrawSetShadow(TD_TV[0], 1);
    
TextDrawUseBox(TD_TV[0], 1);
    
TextDrawBoxColor(TD_TV[0], 255);
    
TextDrawTextSize(TD_TV[0], 340.000000, -270.000000);
    print(
"TV 1 criada"); 
PHP код:
stock TextDraws()
{
    for(new 
playerid 0;playerid <= MAX_PLAYERSplayerid++){
        
TD_TelaDeEntrada[playerid] = TextDrawCreate(12.00000016.000000"loadsc9:loadsc9");
        
TextDrawBackgroundColor(TD_TelaDeEntrada[playerid], 255);
        
TextDrawFont(TD_TelaDeEntrada[playerid], 4);
        
TextDrawLetterSize(TD_TelaDeEntrada[playerid], 0.5000001.000000);
        
TextDrawColor(TD_TelaDeEntrada[playerid], -1);
        
TextDrawSetOutline(TD_TelaDeEntrada[playerid], 0);
        
TextDrawSetProportional(TD_TelaDeEntrada[playerid], 1);
        
TextDrawSetShadow(TD_TelaDeEntrada[playerid], 1);
        
TextDrawUseBox(TD_TelaDeEntrada[playerid], 1);
        
TextDrawBoxColor(TD_TelaDeEntrada[playerid], 255);
        
TextDrawTextSize(TD_TelaDeEntrada[playerid], 614.000000426.000000);
        
printf("TextDraw pro player %i"playerid);
    }
    return 
1;

Meu Problema:
Tudo que estiver apois o loop jб era, nгo lido.
Ex.: o print("TV 1 criada"); Nгo й lido e nem o Textdraw criado.

OBS: Jб tentei loop em outras partes do gm e com outros cуdigos e ele sempre corta a leitura.
Reply


Messages In This Thread
Loop maldito - by Sergiinhonike - 01.11.2012, 04:08
Re: Loop maldito - by Ouro - 01.11.2012, 04:12
Re: Loop maldito - by zSuYaNw - 01.11.2012, 04:15
Re: Loop maldito - by Sergiinhonike - 01.11.2012, 04:21
Re: Loop maldito - by zSuYaNw - 01.11.2012, 04:23
Re: Loop maldito - by Sergiinhonike - 01.11.2012, 04:26
Re: Loop maldito - by zSuYaNw - 01.11.2012, 04:36
Re: Loop maldito - by Sergiinhonike - 01.11.2012, 04:43
Re: Loop maldito - by rjjj - 01.11.2012, 04:57
Re: Loop maldito - by zSuYaNw - 01.11.2012, 05:03

Forum Jump:


Users browsing this thread: 1 Guest(s)