dialog help
#1

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!
Reply
#2

BUMPING!!
Reply
#3

BUMPSZZZZZZZZZ
Reply
#4

BUMPING!!!
Reply
#5

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

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

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?
Reply
#7

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)