SA-MP Forums Archive
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)
+--- Thread: Help (>_<) (/showthread.php?tid=622393)



Help (>_<) - MrTostada - 21.11.2016

I put everything right and I do not skip any errors, but when using the command it is as if I only put a place of teleport.

Code:
new telesww = 5;

	if (strcmp("/zonaww", cmdtext, true, 10) == 0)
	{
	BloqueoDeComandos[playerid] = 1;
	SetPlayerVirtualWorld(playerid, 2);
	SetPlayerInterior(playerid, 1);
	switch (telesww)
	{
    case 0: {SetPlayerPos(playerid, 1412.639892,-1.787510,1000.924377); }
    case 1: {SetPlayerPos(playerid, 1360.1567,4.4784,1000.9219); }
    case 2: {SetPlayerPos(playerid, 1360.0837,5.7613,1008.1563); }
    case 3: {SetPlayerPos(playerid, 1392.2203,-34.4082,1007.8815); }
    case 4: {SetPlayerPos(playerid, 1417.7954,-47.1087,1007.8936); }
    case 5: {SetPlayerPos(playerid, 1416.8197,5.9778,1007.8885); }
    }
	GivePlayerWeapon(playerid, 24, 999999);
	GivePlayerWeapon(playerid, 27, 999999);
	GivePlayerWeapon(playerid, 29, 999999);
	GivePlayerWeapon(playerid, 31, 999999);
	GivePlayerWeapon(playerid, 34, 999999);
	return 1;
	}



Re: Help (>_<) - CaRaM3LL - 21.11.2016

Explain what do you want to do ..


Respuesta: Help (>_<) - MrTostada - 22.11.2016

The "case" don't works


Re: Help (>_<) - J0sh... - 22.11.2016

case 0: { ... break; }
case 1: { ... break; }
case ..: { ... break; }


Re: Respuesta: Help (>_<) - SyS - 22.11.2016

Quote:
Originally Posted by MrTostada
View Post
The "case" don't works
What you mean by that? Are you getting any compile time errors? Or The code is not working @ run time? While making a thread in this section make sure that you are explaining your problems well to others and also put a proper title to it.

Quote:
Originally Posted by Jamester
View Post
case 0: { ... break; }
case 1: { ... break; }
case ..: { ... break; }
This is not c++. Its pawn. And therefore it doesn't change anything.