Help About Checkpoints
#1

Hi all. I have copied my Driving Test system and made a Pizza Delivering Job.
You should enter to a checkpoint and when you enter that checkpoint, another one seems on map. This is the basic system. But; when Pizza Checkpoint system works; Driving Test checkpoints don't work. When I enter to the first checkpoint, it doesn't show another checkpoints. I have found the wrong but I couldn't solve it. Here the codes;


Код:
Altay.pwn(16812) : error 029: invalid expression, assumed zero
Altay.pwn(16812 -- 16813) : warning 215: expression has no effect
Altay.pwn(16813) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

2 Errors.
16812. line;

Код:
        else
			{
				DisablePlayerCheckpoint(playerid);
				LicenseTest[playerid] = 0;
				CP[playerid] = 0;
				SetVehicleToRespawn(GetPlayerVehicleID(playerid));
				SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ehliyet Kurulu: Aracınıza зok hasar verdiniz, testi başaramadınız.");
   			}
  		}
 	}
 	else DisablePlayerCheckpoint(playerid);
	)
	if(PP[playerid] == 1) // Pizza taşıma
	{
  		if(IsPlayerInRangeOfPoint(playerid, 2, 2069.2146,-1656.5670,13.5469)) // Checkpoint 1
		{
      		SetPlayerCheckpoint(playerid,1824.7229,-1538.7413,13.5469, 2);
		}
		else if(IsPlayerInRangeOfPoint(playerid, 2, 1824.7229,-1538.7413,13.5469)) // Checkpoint 2
		{
		    SetPlayerCheckpoint(playerid,1467.9995,-1013.2706,26.8438, 2);
		}
		else if(IsPlayerInRangeOfPoint(playerid, 2, 1467.9995,-1013.2706,26.8438)) // Checkpoint 3
		{
			SetPlayerCheckpoint(playerid,2115.6670,-1789.8052,20.5547, 2);
		}
		else if(IsPlayerInRangeOfPoint(playerid, 2, 2115.6670,-1789.8052,20.5547)) // Checkpoint 4
		{
		    new Float:Health;
		    GetVehicleHealth(GetPlayerVehicleID(playerid), Health);
		    if(Health > 700)
			{
				DisablePlayerCheckpoint(playerid);
				PizzaTasima[playerid] = 0;
				PP[playerid] = 0;
                GiveZaiatMoney(playerid, 750);
				SetVehicleToRespawn(GetPlayerVehicleID(playerid));
				SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Pizzacı Nuri: Aferin evlat, motoru sapasağlam getirmişsin; pizzaları da teslim etmişsin. Buyur 750 doların.");
			}
			else
			{
				DisablePlayerCheckpoint(playerid);
				PizzaTasima[playerid] = 0;
				PP[playerid] = 0;
				SetVehicleToRespawn(GetPlayerVehicleID(playerid));
				SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Pizzacı Nuri: Ula hayta, motorun anasını ağlatmışsın yok sana para mara!");
			}
		}
	}
	else DisablePlayerCheckpoint(playerid);
	return 1;
}
( This DisablePlayerCheckpoint, works. But the first one, which I made it Green doesn't work and makes error. Please help! )
public OnPlayerLeaveCheckpoint(playerid
Reply


Messages In This Thread
Help About Checkpoints - by michale - 19.07.2012, 14:36
Re: Help About Checkpoints - by [KHK]Khalid - 19.07.2012, 14:45
Re: Help About Checkpoints - by michale - 19.07.2012, 14:50
Re: Help About Checkpoints - by [KHK]Khalid - 19.07.2012, 14:56
Re: Help About Checkpoints - by michale - 19.07.2012, 15:15
Re: Help About Checkpoints - by [KHK]Khalid - 19.07.2012, 15:26
Re: Help About Checkpoints - by michale - 19.07.2012, 16:02

Forum Jump:


Users browsing this thread: 1 Guest(s)