[Ajuda] Erro switch
#3

@edit
Jб vi o erro, se ajudei um rep faz bem kk.
PHP код:
forward InicioCorrida();
public 
InicioCorrida()
{
    for(new 
0i<MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            case 
0:
            {
                if(
correndo[i] == 1)
                {
                    
GameTextForPlayer(i"5"10015);
                    
PlayerPlaySound(i10560.00.00.0);
                }
            }
            case 
1:
            {
                if(
correndo[i] == 1)
                {
                    
GameTextForPlayer(i"4"10015);
                    
PlayerPlaySound(i10560.00.00.0);
                }
            }
            
SetTimer("InicioCorrida3"1000false);
            case 
2:
            {
                if(
correndo[i] == 1)
                {
                    
GameTextForPlayer(i"4"10015);
                    
PlayerPlaySound(i10560.00.00.0);
                }
            }
            
SetTimer("InicioCorrida3"1000false);
            case 
3:
            {
                if(
correndo[i] == 1)
                {
                    
GameTextForPlayer(i"3"10015);
                    
PlayerPlaySound(i10560.00.00.0);
                }
            }
            
SetTimer("InicioCorrida3"1000false);
            case 
4:
            {
                if(
correndo[i] == 1)
                {
                    
GameTextForPlayer(i"2"10015);
                    
PlayerPlaySound(i10560.00.00.0);
                }
            }
            
SetTimer("InicioCorrida3"1000false);
            case 
5:
            {
                if(
correndo[i] == 1)
                {
                    
GameTextForPlayer(i"1"10015);
                    
PlayerPlaySound(i10560.00.00.0);
                }
            }
            
SetTimer("InicioCorrida3"1000false);
            case 
6:
            {
                if(
correndo[i] == 1)
                {
                    
GameTextForPlayer(i"GO"10015);
                    
PlayerPlaySound(i10560.00.00.0);
                }
            }
            
SetTimer("InicioCorrida3"1000false);
        }
    }
    return 
1;

Reply


Messages In This Thread
Erro switch - by Marllun - 01.11.2017, 22:35
Re: Erro switch - by C4rtm4n - 01.11.2017, 23:00
Re: Erro switch - by DelK - 01.11.2017, 23:16
Re: Erro switch - by IlanZ - 02.11.2017, 00:46
Re: Erro switch - by MrEdu - 02.11.2017, 01:31
Re: Erro switch - by Marllun - 02.11.2017, 02:11

Forum Jump:


Users browsing this thread: 1 Guest(s)