INVALID_VEHICLE_ID
#1

I get:

Quote:

C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(336) : warning 213: tag mismatch
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(336) : error 001: expected token: ")", but found "["
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(336) : error 029: invalid expression, assumed zero
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(336) : warning 215: expression has no effect
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(336) : error 001: expected token: ";", but found "]"
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(336) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

FOR:


Код:
stock CreateGangVehicle(f, fv, modelid, Float: x, Float: y, Float: z, Float: angle, color1, color2, price)
{
	if(FamilyVehicleInfo[f][fv][fvId] == INVALID_VEHICLE_ID)LINE 336
	{
		FamilyVehicleInfo[f][fv][fvModelId] = modelid;
		FamilyVehicleInfo[f][fv][fvSpawnx] = x;
		FamilyVehicleInfo[f][fv][fvSpawny] = y;
		FamilyVehicleInfo[f][fv][fvSpawnz] = z;
		FamilyVehicleInfo[f][fv][fvSpawna] = angle;
		FamilyVehicleInfo[f][fv][fvColor1] = color1;
		FamilyVehicleInfo[f][fv][fvColor2] = color2;
		FamilyVehicleInfo[f][fv][fvPrice] = price;
		FamilyVehicleInfo[f][fv][fvFuel] = 100.0;
		new carcreated = AddStaticVehicleEx(modelid,x,y,z,angle,color1,color2,-1);
		FamilyVehicleInfo[f][fv][fvId] = carcreated;
		printf("Created the gang vehicle for family %d | vehicleid #%d | familyvehicleslot #%d.", f, FamilyVehicleInfo[f][fv][fvId], fv);
		return carcreated;
	}
	return INVALID_VEHICLE_ID;
}
Reply


Messages In This Thread
INVALID_VEHICLE_ID - by MrCallum - 04.01.2015, 21:49
Re: INVALID_VEHICLE_ID - by Divergent - 04.01.2015, 21:54
Re: INVALID_VEHICLE_ID - by MrCallum - 04.01.2015, 22:12
Re: INVALID_VEHICLE_ID - by Divergent - 04.01.2015, 22:17
Re: INVALID_VEHICLE_ID - by MrCallum - 05.01.2015, 14:30
Re: INVALID_VEHICLE_ID - by Sawalha - 05.01.2015, 14:52

Forum Jump:


Users browsing this thread: 1 Guest(s)