error 014: invalid statement; not in switch
#1

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
    {
    switch(dialogid)
        {
  case 1:// My code
    	    {
           	switch(listitem)
        	{
        	    case 0:// meh code
        	    {
                    My code
        	    }
        	    case 1: // meh code
        	    {
        	      my code
        	    }
        	    case 2: // meh code
        	    {
        	        my code
        	}
    	    }
	}
    }
    return 1;

    case 2: //
    	    {
           	switch(listitem)// 
        	{
        	    case 0:// 
        	    {
					my code
        	    }
        	    case 1: // my code
        	    {
        	        my code
        	    }
        	    case 2: // my code
        	    {
        	        my code
        	    }
        	}
    	    }
	}
    }
    return 1;
}

   case 3...
I replaced my code with my code to prevent people from stealing my code, as its not a released product yet.

The fs is in ZCMD.

at code 2;
it says "error 014: invalid statement; not in switch".
Reply


Messages In This Thread
error 014: invalid statement; not in switch - by DamonD - 14.10.2013, 21:03
Re: error 014: invalid statement; not in switch - by DanishHaq - 14.10.2013, 21:08
Re: error 014: invalid statement; not in switch - by DamonD - 14.10.2013, 21:10
Re: error 014: invalid statement; not in switch - by InglewoodRoleplay - 14.10.2013, 21:10
Re: error 014: invalid statement; not in switch - by DamonD - 14.10.2013, 21:31
Re: error 014: invalid statement; not in switch - by arakuta - 14.10.2013, 22:01
Re: error 014: invalid statement; not in switch - by DanishHaq - 14.10.2013, 22:01

Forum Jump:


Users browsing this thread: 1 Guest(s)