Need some help with dialog
#4

Код:
if (dialogid == 8564)
        {
                if (response)
                {
                    switch (listitem)
                    {
                        case 0:
                                {
                                    	 SetPlayerColor(playerid, COLOR_RED );
	                                     SendClientMessage(playerid, COLOR_WHITE,"Tavo spalva Raudona");
                                }
                        case 1:
                                {
                                    	 SetPlayerColor(playerid, COLOR_YELLOW );
                                         SendClientMessage(playerid, COLOR_WHITE,"Tavo spalva geltona");
                                }
                        case 2:
                                {
                                    	 SetPlayerColor(playerid, COLOR_GREEN );
	                                     SendClientMessage(playerid,COLOR_WHITE,"Tavo spalva юalia");
                                }
                        case 3:
                                {
                                    	 SetPlayerColor(playerid, COLOR_BLUE);
	                                     SendClientMessage(playerid, COLOR_WHITE,"Tavo spalva mлlyna");
								}

                        }
                }
        }
a working dialogresponse with case It's from my gamemode script
and back yours 1st script
Код:
	 if(dialogid == 2109) //dialog id
   {
      if(response) // pressed OK
      {
         if(listitem == 0) //1st choice
         {
          FUNCTION
		 }
         else if(listitem == 1) //second choice
         {
          FUNCTION
	   }
              if(listitem == 2) // third choice
          FUNCTION
	   }
      return 1;
   }
both of these scripts work for me
Reply


Messages In This Thread
Need some help with dialog - by Breilid - 17.11.2012, 18:29
Re: Need some help with dialog - by Dovydux - 17.11.2012, 18:34
Re: Need some help with dialog - by Breilid - 17.11.2012, 18:48
Re: Need some help with dialog - by Dovydux - 17.11.2012, 19:04
Re: Need some help with dialog - by Konstantinos - 17.11.2012, 20:29
Re: Need some help with dialog - by Breilid - 19.11.2012, 05:57

Forum Jump:


Users browsing this thread: 1 Guest(s)