Help (>_<)
#1

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;
	}
Reply
#2

Explain what do you want to do ..
Reply
#3

The "case" don't works
Reply
#4

case 0: { ... break; }
case 1: { ... break; }
case ..: { ... break; }
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)