Help me ! Wtf is wrong here ?
#1

Код:
	if(dialogid == COMMANDS && response)
	{
        switch(listitem)
        {
	case 0:
	{
	SendClientMessage(playerid, YELLOW, " Asd ");
        SendClientMessage(playerid, YELLOW, " Asd ");
	}
	case 1:
	{
	SendClientMessage(playerid, YELLOW, " Asd ");
        SendClientMessage(playerid, YELLOW, " Asd ");
	}
	case 2: 
	{
	SendClientMessage(playerid, YELLOW, " Asd ");
        SendClientMessage(playerid, YELLOW, " Asd ");
	}
	case 3: 
	{
	SendClientMessage(playerid, YELLOW, " Asd ");
        SendClientMessage(playerid, YELLOW, " Asd ");
	}
	return 1;
	}
Код:
C:\(335) : error 002: only a single statement (or expression) can follow each "case"
C:\(335) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Line 335: return 1;
Reply


Messages In This Thread
Help me ! Wtf is wrong here ? - by Tekto - 02.08.2010, 17:22
Re: Help me ! Wtf is wrong here ? - by Ash. - 02.08.2010, 17:24
Re: Help me ! Wtf is wrong here ? - by Tekto - 02.08.2010, 17:26
Re: Help me ! Wtf is wrong here ? - by Conroy - 02.08.2010, 17:30
Re: Help me ! Wtf is wrong here ? - by Hiddos - 02.08.2010, 17:32
Re: Help me ! Wtf is wrong here ? - by Tekto - 02.08.2010, 17:50

Forum Jump:


Users browsing this thread: 1 Guest(s)