[Ajuda] Erro no codigo
#8

Tenta ai agora amigo!

PHP код:
dcmd_facplayers(playeridparams[])
{
    
#pragma unused params
    
    
new
        
CounTList[1000],
        
CounTDialog[800],
        
CounTeamCMD,
        
CounTeamLLL,
        
CounTeam3CP,
        
CounTeamMLC
    
;
    
    for(new 
0MAX_PLAYERS++)
    {
        switch(
Player[i][pFaccoes] && IsPlayerConnected(i))
        {
            case 
1..3:
                
CounTeamCMD ++;
            case 
4..6:
                
CounTeamLLL ++;
            case 
7..9:
                
CounTeam3CP ++;
            case 
10..12:
                
CounTeamMLC ++;
         }
         
format(CounTDialogsizeof(CounTDialog), "(CMD): Tem %i Players Online.\n"CounTeamCMDstrcat(CounTListCounTDialog));
         
format(CounTDialogsizeof(CounTDialog), "(LLL): Tem %i Players Online.\n"CounTeamLLLstrcat(CounTListCounTDialog));
         
format(CounTDialogsizeof(CounTDialog), "(3CP): Tem %i Players Online.\n"CounTeam3CPstrcat(CounTListCounTDialog));
         
format(CounTDialogsizeof(CounTDialog), "(MLC): Tem %i Players Online.\n"CounTeamMLCstrcat(CounTListCounTDialog));
         
ShowPlayerDialog(playerid700DIALOG_STYLE_MSGBOX"Facзхes Online:"CounTList"Fechar"#);
    
}
    return 
true;

@EDIT
Melhorei mнnimos detalhes e tambйm fiz o mбximo de otimizaзгo possнvel. Tambйm quero deixar claro que nгo foi testado
Reply


Messages In This Thread
Erro no codigo - by henrique22157 - 05.03.2018, 20:36
Re: Erro no codigo - by [BOPE]Seu._.Madruga - 05.03.2018, 20:39
Re: Erro no codigo - by henrique22157 - 05.03.2018, 20:40
Re: Erro no codigo - by SrDivuOfficial - 05.03.2018, 20:54
Re: Erro no codigo - by zG - 05.03.2018, 21:04
Re: Erro no codigo - by IgorLuiz - 05.03.2018, 21:06
Re: Erro no codigo - by JohnBlack - 05.03.2018, 21:48
Re: Erro no codigo - by PilateGR - 05.03.2018, 23:00

Forum Jump:


Users browsing this thread: 3 Guest(s)