Second and rest commands won't work
#1

Hi!
I have problem with command function. I have 4 commands, which are for each team. But the problem is that 1st command work fine for first team. The problem is, when i change my team 2nd command won't work and its same with rest commands for teams.
I removed 1st command for 1st team. Then basicly 2nd teams command is like first and then it works find.!
I am seriously confused!
Code:
Код:
	if (strcmp("/atgrieztmasinu", cmdtext, true, 10) == 0)
	{
		if(gTeam[playerid] == kaimins1)
		{
	    	if(IsPlayerInRangeOfPoint(playerid, 5, 1425.722534, -885.609985, 50.713619))
	  		{
	  		    SetVehicleToRespawn(Cars[kaiminsviens]);
	  		    SendClientMessage(playerid, -1,"[Info] Māљīna atgriezta!");
			}
		}
		return 1;
	}
	if (strcmp("/atgrieztmasinu", cmdtext, true, 10) == 0)
	{
		if(gTeam[playerid] == kaimins2)
		{
	    	if(IsPlayerInRangeOfPoint(playerid, 5, 1471.8503,-903.7045,54.8989))
	  		{
	  		    SetVehicleToRespawn(Cars[kaiminsdivi]);
	  		    SendClientMessage(playerid, -1,"[Info] Māљīna atgriezta!");
			}
		}
		return 1;
	}
	if (strcmp("/atgrieztmasinu", cmdtext, true, 10) == 0)
	{
		if(gTeam[playerid] == kaimins3)
		{
	    	if(IsPlayerInRangeOfPoint(playerid, 5, 1539.5809,-855.2153,64.3361))
	  		{
	  		    SetVehicleToRespawn(Cars[kaiminstris]);
	  		    SendClientMessage(playerid, -1,"[Info] Māљīna atgriezta!");
			}
		}
		return 1;
	}
Reply


Messages In This Thread
Second and rest commands won't work - by Kasis - 02.02.2011, 19:44
Re: Second and rest commands won't work - by Kasis - 03.02.2011, 06:37
Re: Second and rest commands won't work - by Steven Paul - 03.02.2011, 07:52
Re: Second and rest commands won't work - by Kasis - 03.02.2011, 09:51
Re: Second and rest commands won't work - by Kasis - 03.02.2011, 11:54
Re: Second and rest commands won't work - by iggy1 - 03.02.2011, 11:56
Re: Second and rest commands won't work - by Kasis - 03.02.2011, 11:58
Re: Second and rest commands won't work - by [WSF]ThA_Devil - 03.02.2011, 12:04
AW: Second and rest commands won't work - by Nero_3D - 03.02.2011, 12:05
Re: Second and rest commands won't work - by iggy1 - 03.02.2011, 12:07
Re: Second and rest commands won't work - by Kasis - 03.02.2011, 12:11

Forum Jump:


Users browsing this thread: 4 Guest(s)