help needed, contine and quit
#3

Quote:
Originally Posted by [AC
Etch ]
try this as dialogresponse
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == 1 && response)
	{
		switch(listitem)
	    {
		case 0:
	    {
			SendClientMessage(playerid,0x008000FF, "Enjoy your stay!");
		}
		case 1:
	    {
		 SendClientMessage(playerid, 0xFF0000FF, "You selected 'Quit', therefore you got kicked. Goodbye!");
		 Kick(playerid);
		}
		return 1;
	}
	return 0;
}
Gives me error:
Код:
...\wsm.pwn(52) : error 002: only a single statement (or expression) can follow each "case"
...\wsm.pwn(52) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
help needed, contine and quit - by security - 28.02.2010, 10:59
Re: help needed, contine and quit - by aircombat - 28.02.2010, 11:04
Re: help needed, contine and quit - by security - 28.02.2010, 11:10
Re: help needed, contine and quit - by aircombat - 28.02.2010, 11:15
Re: help needed, contine and quit - by security - 28.02.2010, 11:22
Re: help needed, contine and quit - by Born2die - 28.02.2010, 11:31
Re: help needed, contine and quit - by security - 28.02.2010, 11:59

Forum Jump:


Users browsing this thread: 1 Guest(s)