Posts: 1,564
	Threads: 98
	Joined: Apr 2011
	
Reputation: 
0
	 
	
	
		So, what is the problem here officer?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 77
	Threads: 4
	Joined: Dec 2011
	
Reputation: 
0
	 
	
	
		lol.. you are missing a closing bracket } for every if(dialogid..
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 2,286
	Threads: 18
	Joined: Jun 2010
	
	
 
	
	
		
Quote:
| 
					Originally Posted by RockingCamman  I get errors, and missing bracket finder says there is missing brackets, but the lines are incorrect | 
 Didn't you read the post above? You're missing a closing bracket after every if (dialogid == ...)
It should be:
pawn Код:
if(dialogid == DIALOG_DUTY)
    {
         switch(listitem)
         {
            case 0:
            {
                // removed to prevent copiers
            }
            case 1:
            {
                // removed to prevent copiers
            }
        }
   }
    if(dialogid == DIALOG_DUTY1)
    {
        switch(listitem)
        {
            case 0:
            {
                if(OnDuty[playerid] == 0)
                {
                    // removed to prevent copiers
                }
                else if(OnDuty[playerid] == 1)
                {
                    // removed to prevent copiersFirefighter");
                }
            }
            case 1:
            {
                if(OnDuty[playerid] == 0)
                {
                    // removed to prevent copiers
                    
                }
                else if(OnDuty[playerid] == 1)
                {
                    // removed to prevent copiers
                }
            }
        }
    }
    if(dialogid == DIALOG_DUTY2)
    {
        switch(listitem)
        {
            case 0:
            {
                // removed to prevent copiers
            }
            case 1:
            {
                // removed to prevent copiers
            }
        }
    }
    if(dialogid == DIALOG_DUTY3)
    {
        switch(listitem)
        {
            case 0:
            {
                        //
            }
        }
    }
        
    if(dialogid == DIALOG_DUTY4)
    {
        switch(listitem)
        {
            case 0:
            {
                    //
            }
        }
    }
    return 1;
}
 
	 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 2,286
	Threads: 18
	Joined: Jun 2010
	
	
 
	
	
		
Quote:
| 
					Originally Posted by RockingCamman  Now my compiler just crashed -,- | 
 Umm... lrn2read?
	
 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 2,286
	Threads: 18
	Joined: Jun 2010
	
	
 
	
	
		
Quote:
| 
					Originally Posted by RockingCamman   | 
 Are you joking?! There's nothing more simple than finding missing brackets, especially when your tabs are perfectly done....