loose identation
#1

PHP код:
case DIALOG_ARMADIETTO:
        {
            if (!
response) return 1;
            
              switch (
listitem)
        {
            case 
0// Seleziona Skin
            
{
                
SCM(playeridCOLOR_GREEN"Seleziona una delle seguenti divise disponibili nell'armadietto!");
                
ShowModelSelectionMenu(playerid"Seleziona Skin"LSPD_SELECTION_SKINLspdSkinssizeof(LspdSkins), 0.00.00.0);
                
SCM(playeridCOLOR_GREEN"Hai preso la divisa dall'armadietto!");
            }
            case 
1// Giubbotto Antiproiettile
            
{
                
SetPlayerArmour(playerid100);
                
SCM(playerid, -1"Hai preso un giubbotto antiproiettile dall'armadietto!");
            }
            
            case 
2// Armi
            
{
                
ShowPlayerDialog(playeridDIALOG_ARMI_LSPDDIALOG_STYLE_LIST"ARMADIETTO LSPD""Manganello\nDesert Eagle\nMP5\nM4\nSpray Al Peperoncino""Conferma""Esci");
                
SCM(playerid, -1""GREEN"Hai aperto l'armadietto, scegli una delle seguenti armi:"GREY"("RED"!"GREY")"YELLOW"");
               }
            
            case 
3// Esci Dal Servizio
            
{
                if(
Player[playerid][FactionDuty] == 0) return SCM(playerid, -1"Non sei in servizio!");
                
Player[playerid][FactionDuty] = 0;
                
SCM(playerid, -1"Hai posato la divisa e le armi nell'armadietto!");
                
ShowPlayerDialog(playeridDIALOG_ARMADIETTODIALOG_STYLE_LIST"ARMADIETTO LSPD""Seleziona Skin\nGiubbotto Antiproiettile\nArmi\nEsci Dal Serivizio""Conferma""Esci");
            }
        }
//HERE ERROR
        
if(GetPVarInt(playerid,"CmdTime")>GetTickCount()) return SCM(playerid,COLOR_LIGHTRED,"* "RED"Devi aspettare "YELLOW"30 minuti "RED"prima di poter riaccedere all'armadietto "GREY"("RED"!"GREY")"YELLOW"");
        
SetPVarInt(playerid,"CmdTime",GetTickCount()+1800000);
        }
        default: return 
0;
    }
    return 
1;

Reply


Messages In This Thread
loose identation - by kevi11 - 13.11.2018, 10:03
Re: loose identation - by khRamin78 - 13.11.2018, 10:17
Re: loose identation - by kevi11 - 13.11.2018, 10:25
Re: loose identation - by kevi11 - 13.11.2018, 10:29
Re: loose identation - by BigETI - 13.11.2018, 11:03
Re: loose identation - by ChrisPa - 13.11.2018, 13:11

Forum Jump:


Users browsing this thread: 1 Guest(s)