Vehicle System: Vehicle spawns with saved Modelid and color1+2 but not on the XYZA
#3

Here's the loader!
Код:
//LOADING VEHICLES
forward LoadVehicle(fileid, name[], value[]); 
public LoadVehicle(fileid, name[], value[])
{
	INI_Int("vID",VehicleInfo[fileid][vID]);
    INI_Int("Model",VehicleInfo[fileid][vModel]);
    INI_Float("X",VehicleInfo[fileid][vX]);
    INI_Float("Y",VehicleInfo[fileid][vY]);
    INI_Float("Z",VehicleInfo[fileid][vZ]);
    INI_Float("A",VehicleInfo[fileid][vA]);
    INI_Int("Color1",VehicleInfo[fileid][vColor1]);
    INI_Int("Color2",VehicleInfo[fileid][vColor2]);
    INI_Int("Type",VehicleInfo[fileid][vType]);
    INI_Int("Owner",VehicleInfo[fileid][vOwner]);
    return 1;
}
//LOADING VEHICLES ^
It does look at the right file since its loading the vModel and vColor1 + vColor2, but it wont load the XYZA as spawn pos.
Thanks for the reply btw, I appreciate it!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)