if statement
#3

Thank you, it works now.
Quote:
Originally Posted by NaS
Посмотреть сообщение
Btw why do you split the vehicles into two arrays? You could keep them in one and just make some "ownable".
Since you access both with vehicleid, it should work fine. That would probably simplify things like this a bit.
But I don't know if you have any reason for splitting them, so this is just an idea.
I don't know, but they are not both accessed with vehicleid.
This is what DynamicVehicleInfo looks like:
Код:
enum dynamicVehicleInfo
{
	VehicleID,
	VehicleExists,
	VehicleRealID,
	VehicleModel,
	VehicleFuel,
	Float:VehiclePos[4],
	Float:VehicleHealth,
	VehicleDamages[4],
	VehicleWindowBroken,
	VehicleOwner,
	VehiclePlate[8],
	VehicleLocked,
	VehicleColor1,
	VehicleColor2,
	VehiclePaintjob,
	VehicleMods[14]
}
new DynamicVehicleInfo[MAX_DYNAMIC_VEHICLES][dynamicVehicleInfo];
Reply


Messages In This Thread
if statement - by GoldenLion - 27.12.2016, 16:12
Re: if statement - by NaS - 27.12.2016, 16:41
Re: if statement - by GoldenLion - 27.12.2016, 19:13
Re: if statement - by NaS - 27.12.2016, 19:17
Re: if statement - by GoldenLion - 27.12.2016, 19:19
Re: if statement - by Konstantinos - 27.12.2016, 19:28

Forum Jump:


Users browsing this thread: 4 Guest(s)