Error in a command
#3

Quote:
Originally Posted by SilentSoul
Посмотреть сообщение
Unreachable code means when you use return and the next line had some text that could be executed , Would you mind if you showed us full code of OnDialogResponse ? to fix your problem , also show us in which line you get this error.
The error line is 790 - if(dialogid == DIALOG_GANG)
heres the dialog before that one
Код:
  if(dialogid == DIALOG_LOGIN)
  {
    if(!response) return SetTimerEx("IsKick" ,10 ,false ,"i" ,playerid),SendClientMessage(playerid,0xFF0000C8,".бзшъ мцаъ одщшъ");
    if(!strlen(inputtext)) return ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"{00FF00}Login","{00FF00}шщен аъ сйсоък","дъзбшеъ","йцйад");
    if(strcmp(inputtext,DOF2_GetString(RFile(playerid),"Password"),true))
    {
	  if(LongPass[playerid] == true)
	  {
        LongPass[playerid] = false;
	    ShowPlayerDialog(playerid,DIALOG_LONG,DIALOG_STYLE_MSGBOX,"{FF0000}Eror Password:","{FF0000}.бвмм щитйъ 2 фтойн бсйсод зифъ чйч","айщеш","йцйад");
	    SetTimerEx("IsKick" ,10 ,false ,"i" ,playerid);
        return 1;
	  }
	  LongPass[playerid] = true;
	  format(String,sizeof(String),"{FF0000}дсйсоа щдчщъ айрд рлерд\n{FF0000}[%d/2] :рщаш мк тег осфш фтойн бщбйм мвмеъ аъ дсйсод",LongPass[playerid]);
	  ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"{FF0000}Eror Password:",String,"дъзбшеъ","йцйад");
	  return 1;
    }
    SendClientMessage(playerid,-1,"{00FFFF}!дъзбшъ мщшъ бдцмзд");
	format(String,sizeof(String),"{00FFFF}дъзбш мщшъ бдцмзд %s дщзчп",GetName(playerid));
	SendClientMessage(playerid, -1 , String);
	Loged[playerid] = true;
  }
  return 1;

      if(dialogid ==  DIALOG_GANG)
    {
        if(response)
        {

            if(listitem == 0)
            {

			 SendClientMessage(playerid,0xFF0000AA," бзшъ щма мдйеъ збш бщен варв! ");
			  }
            if(listitem == 1)
            {
                //TEXT
            }
            if(listitem == 2)
            {
				//TEXT
            }
                  if(listitem == 3)
            {
              //TEXT
            }
            if(listitem == 4)
            {
                //TEXT
            }
            if(listitem == 5)
            {
                //TEXT
            }

   return 1;
   }
  }
  return 0;
  }
this jibrish is my lang btw
Reply


Messages In This Thread
Error in a command - by tamirshoval - 13.12.2013, 10:40
Re: Error in a command - by SilentSoul - 13.12.2013, 10:48
Re: Error in a command - by tamirshoval - 13.12.2013, 10:53
Re: Error in a command - by PowerPC603 - 13.12.2013, 10:58
Re: Error in a command - by tamirshoval - 13.12.2013, 11:00

Forum Jump:


Users browsing this thread: 1 Guest(s)