Have a problem mabey you can help....
#4

Код:
		case 10:
		{
			for(new i=0;i<MAX_PLAYERS;i++)
			{
				if(IsPlayerConnected(i))
				{
					if (!IsPlayerInVehicle(i,stealcar))
					{
						SetAllPlayerCheckpoint(cwx,cwy,cwz,16.0,255);
						SetVehicleParamsForPlayer(stealcar,i,1,0);
					}
				}
			}
			return 1;
		}//case 10 closed. b) moving this line (bracket only) right before the return 1; would help aswell
		//case 11: missing, there cant be a for(){} loop in a switch(){}, unless you place it in a case:{}
		for(new i=0;i<MAX_PLAYERS;i++)
		{
			if(IsPlayerConnected(i))
			{
				if (!IsPlayerInVehicle(i, stealcar))
				{//since its obvious that those 2 loops are showing 1 checkpoint to each player, i dont think they should be both in the same case 10:. add that case 11: mentioned above
					SetPlayerCheckpoint(i,scx, scy, scz,5.0 );
					SetVehicleParamsForPlayer(stealcar,i,1,0);
				}
				//SetAllPlayerCheckpoint(scx, scy, scz, 16.0, 255);
			}
		}
		return 1;
Reply


Messages In This Thread
Have a problem maybe you can help.... - by trapped1 - 26.12.2010, 16:15
Re: Have a problem mabey you can help.... - by JaTochNietDan - 26.12.2010, 16:34
Re: Have a problem mabey you can help.... - by trapped1 - 26.12.2010, 16:39
Re: Have a problem mabey you can help.... - by Babul - 26.12.2010, 23:30
Re: Have a problem mabey you can help.... - by trapped1 - 26.12.2010, 23:57

Forum Jump:


Users browsing this thread: 1 Guest(s)