SA-MP Forums Archive
dialog help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: dialog help (/showthread.php?tid=182728)



dialog help - WardenCS - 12.10.2010

Hey,im not very good with dialogs and uhm i need help with one..

i wanted to make dialog list,where you can choose skins etc,and wanted to make it with 3 buttons,is it possible?
i didnt think it was but if it is then teach me please

but now i made usual dialog with 2 buttons
and i got error
Код:
error 002: only a single statement (or expression) can follow each "case"
i think i did it wrong,how to make an respone to button click?

heres the code:
Код:
		case 14124:
	    {
	        switch( listitem )
	        {
         	case 0:
	    	{
			ChosenSkin = listitem;
			SetPlayerSkin(playerid, ChosenSkin);
			SetTimerEx("ClothesTimer",7000,1,"i",playerid);
		    }
       		case 1:
	    	{
			ChosenSkin = listitem;
			SetPlayerSkin(playerid, ChosenSkin);
			SetTimerEx("ClothesTimer",7000,1,"i",playerid);
		    }
     		case 2:
	    	{
			SetPlayerSkin(playerid,PlayerStatistics[playerid][pLastSkin]);
		    }
			else
			{
            TogglePlayerControllable(playerid,1);
            SetPlayerPos(playerid,330.1799,1854.6450,7.8281);
            SendClientMessage( playerid, WHITE, "You chose your new clothes and walked out from the clothes change place" );
		    }

 	  		}
i really need help with this,thank you!


Re: dialog help - WardenCS - 13.10.2010

BUMPING!!


Re: dialog help - WardenCS - 13.10.2010

BUMPSZZZZZZZZZ


Re: dialog help - WardenCS - 14.10.2010

BUMPING!!!


Re: dialog help - MetalScript - 14.10.2010

You cant make dialog with 3 buttons, the original list dialog has only 2 buttons.

For dialogs read: https://sampwiki.blast.hk/wiki/ShowPlayerDialog


Re: dialog help - Steven82 - 14.10.2010

You have about 700 something post, ok, and your asking how to make a dialog? Or were those 700 posts or so, just flamming/trolling?


Re: dialog help - WardenCS - 14.10.2010

ummh..well first to Steven82,i have life and i dont have time to be online 24/7 and learn scripting,i scripted like 2 years ago and i dont remember stuff like this.