Job car problem
#1

I'm added new job to my gamemode, but something doesn't work right.

I added this in public OnPlayerEnterCheckpoint(playerid). I added other lines to, maybe it helps.
Код:
forward LaoAutod(carid); 
_____________________
Код:
public LaoAutod(carid)
{
if(carid >= 1 && carid <= 4)
	{
		return 1;
	}
	return 0;
}
Код:
			if(LaoAutod(newcar))
		{
		    if(PlayerInfo[playerid][pJob] == 11) { }
		    else {
	        RemovePlayerFromVehicle(playerid);
	        SendClientMessage(playerid, COLOR_GREY," Sul ei ole selle masina vхtmeid.");}
		}
______________OnPlayerEnterCheckpoint(playerid)__________________

else if(LaoAutod >= 1 && newcar <= 4)
{
SendClientMessage(playerid,COLOR_RED,"You are not in the delivery truck.");
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,5,2121.4949,-1781.8108,13.5618)) // Food and Drinks ...(legal)
{
SendClientMessage(playerid, COLOR_GREEN, "You have delivered the products and got payed $1000, good job.");
SendClientMessage(playerid, COLOR_GREEN, "Get Back The Truck To Fedex Warehouse as Fast as you can !");
GivePlayerCash(playerid, 1000);
DisablePlayerCheckpoint(playerid);
}
if(IsPlayerInRangeOfPoint(playerid,5,2247.8418,-1661.3953,15.5455)) // Clothing ...(legal)
{
SendClientMessage(playerid, COLOR_GREEN, "You have delivered the products and got payed $2000, good job.");
SendClientMessage(playerid, COLOR_GREEN, "Get Back The Truck To Fedex Warehouse as Fast as you can !");
GivePlayerCash(playerid, 2000);
DisablePlayerCheckpoint(playerid);
}
if(IsPlayerInRangeOfPoint(playerid,5,2517.2693,-1274.5581,34.9548)) // Drugs ...(illegal)
{
SendClientMessage(playerid, COLOR_GREEN, "You have delivered the products and got payed $3000, good job.");
SendClientMessage(playerid, COLOR_GREEN, "Get Back The Truck To Fedex Warehouse as Fast as you can !");
GivePlayerCash(playerid, 3000);
DisablePlayerCheckpoint(playerid);
}
if(IsPlayerInRangeOfPoint(playerid,5,1362.9902,-1279.9124,13.6332)) // Illegal Fire Arms ... (illegal)
{

SendClientMessage(playerid, COLOR_GREEN, "You have delivered the products and got payed $4000 and a special weapon with some bullets, good job.");
SendClientMessage(playerid, COLOR_GREEN, "Get Back The Truck To Fedex Warehouse as Fast as you can !");
GivePlayerCash(playerid, 4000);
GivePlayerWeaponEx(playerid, 22, 50);
DisablePlayerCheckpoint(playerid);
}
... and i'm getting this kind of error. How can i fix it?
Код:
F:\Users\Kasutaja\Desktop\ServeriFailid\gamemodes\dlrp.pwn(6497) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Regards, Sturra
Reply
#2

(6497) : error 076: syntax error in the expression, or invalid function call

What line is that?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)