Gamemode and their confusing ids.
#1

Every time I change something in my 'Gamemode' it begins to confuse the cars, saying that a car is a bike or otherwise. How do I organize?
Reply
#2

if you have what ever function calling a direct car ID# then that may be your problem sometimes they load in different order when you alter things and get new IDs you can have it call for model# or assign them to a global var for different purposes ...depends what you are doing with them realy
Reply
#3

how should i proceed to do this? How can i call for model#

Parts of codes

Код:
forward IsAGangCar(carid);
forward IsAGangCar2(carid);
forward IsAGangCar3(carid);
forward IsAGangCar4(carid);
forward IsAGangCar5(carid);
forward IsAGangCar6(carid);
forward IsAGangCar7(carid);
forward IsABike(carid);
forward IsAOBike(carid);
forward IsATank(carid);
Код:
forward IsATruck(carid);
forward IsAPizzabike(carid);
forward IsABus(carid);
and more types, its just a example

there is too

Код:
enum eCars
{
	model_id,
	Float:pos_x,
	Float:pos_y,
	Float:pos_z,
	Float:z_angle,
};
and

Код:
new armycar[32];
new governcar[5];
new copcar[37];
new swatcar[11];
new vicecar[13];
new fbicar[20];
and

Код:
new RandCars[20][1] = {
{496},{542},{507},{585},
{466},{492},{579},{559},
{400},{551},{516},{475},
{561},{550},{566},{558},
{562},{562},{603},{560}
};
and

Код:
public IsABoat(carid)
{
	if(IsModelABoat(carid))
	{
		return 1;
	}
	return 0;
}
and

Код:
	copcar[17] = AddStaticVehicleEx(599,1545.0044,-1671.9329,6.0791,91.5492,-1,-1,30000); // Police ranger 35
	swatcar[0] = AddStaticVehicleEx(427,1544.2870,-1659.3522,5.6119,88.5025,0,125,30000);// Police SWAT enforcer 36
	swatcar[1] = AddStaticVehicleEx(601,1544.6962,-1663.2948,6.0225,88.9357,-1,-1,30000); // Police SWAT APC 37
	copcar[18] = AddStaticVehicleEx(497,1566.6628,-1653.8688,28.5752,91.9445,0,1,30000);// Police maverick 38
Reply
#4

Oh look, another godfather edit. If you decide to use this script then you should face the consequences. This gamemode is very static and changing even the slightest thing can break the whole thing.
Reply
#5

Quote:
Originally Posted by Vince
Посмотреть сообщение
Oh look, another godfather edit. If you decide to use this script then you should face the consequences. This gamemode is very static and changing even the slightest thing can break the whole thing.
But there must be a way, dont?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)