19.07.2012, 14:36
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;
16812. line;
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.
Код:
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