Case error
#1

I use the "case" wrong?
Код:
	if (strcmp("/zonaww", cmdtext, true, 10) == 0)
	{
	BloqueoDeComandos[playerid] = 1;
	SetPlayerVirtualWorld(playerid, 2);
	SetPlayerInterior(playerid, 1);
	}
    case 1:
    {
	SetPlayerPos(playerid, 1412.639892,-1.787510,1000.924377);
	return 1;
	}
    case 2:
	{
	SetPlayerPos(playerid, 1360.1567,4.4784,1000.9219);
	return 1;
	}
    case 3:
	{
	SetPlayerPos(playerid, 1360.0837,5.7613,1008.1563);
	return 1;
	}
    case 4:
	{
	SetPlayerPos(playerid, 1392.2203,-34.4082,1007.8815);
	return 1;
	}
    case 5:
	{
	SetPlayerPos(playerid, 1417.7954,-47.1087,1007.8936);
	return 1;
	}
    case 6:
	{
	SetPlayerPos(playerid, 1416.8197,5.9778,1007.8885);
	return 1;
	}
	GivePlayerWeapon(playerid, 24, 999999);
	GivePlayerWeapon(playerid, 27, 999999);
	GivePlayerWeapon(playerid, 29, 999999);
	GivePlayerWeapon(playerid, 31, 999999);
	GivePlayerWeapon(playerid, 34, 999999);
	return 1;
	}
Error:
Код:
\gamemodes\NL_v2.7.pwn(363) : error 014: invalid statement; not in switch
\gamemodes\NL_v2.7.pwn(363) : warning 215: expression has no effect
\gamemodes\NL_v2.7.pwn(363) : error 001: expected token: ";", but found ":"
\gamemodes\NL_v2.7.pwn(363) : error 029: invalid expression, assumed zero
\gamemodes\NL_v2.7.pwn(363) : fatal error 107: too many error messages on one line
Reply


Messages In This Thread
Case error - by MrTostada - 21.11.2016, 15:03
Re: Case error - by GoldenLion - 21.11.2016, 15:07
Respuesta: Case error - by MrTostada - 21.11.2016, 15:10
Re: Case error - by Vince - 21.11.2016, 15:21
Respuesta: Case error - by MrTostada - 21.11.2016, 15:22

Forum Jump:


Users browsing this thread: 1 Guest(s)