Halloa,
ich hab ein Problem, wenn ich irgendwas mit dem Pd speichere kommt beim Server immer Unkonwn Command mit der Army oder so gehts...
Code:
forward LoadFracCars();
public LoadFracCars()
{
dini_Create("ArmyCars.ini");
dini_Create("SAPDCars.ini");
new keystring[128];
new platestring[8];
for(new i = 0; i < sizeof(ArmyVehs); i++)
{
format(keystring,sizeof(keystring), "Car%i_Model",i);
fCarparkInfo[1] [i] [ModelId] = dini_Int("ArmyCars.ini",keystring);
format(keystring,sizeof(keystring), "Car%i_X",i);
fCarparkInfo[1] [i] [ParkX] = dini_Float("ArmyCars.ini",keystring);
format(keystring,sizeof(keystring), "Car%i_Y",i);
fCarparkInfo[1] [i] [ParkY] = dini_Float("ArmyCars.ini",keystring);
format(keystring,sizeof(keystring), "Car%i_Z",i);
fCarparkInfo[1] [i] [ParkZ] = dini_Float("ArmyCars.ini",keystring);
format(keystring,sizeof(keystring), "Car%i_Angle",i);
fCarparkInfo[1] [i] [ParkAngle] = dini_Float("ArmyCars.ini",keystring);
if(fCarparkInfo[1] [i] [ModelId] >= 400 && fCarparkInfo[1] [i] [ModelId] <= 611)
{
ArmyVehs[i] = CreateVehicle(fCarparkInfo[1] [i] [ModelId], fCarparkInfo[1] [i] [ParkX], fCarparkInfo[1] [i] [ParkY], fCarparkInfo[1] [i] [ParkZ], fCarparkInfo[1] [i] [ParkAngle], 79, 1, 900);
format(platestring, sizeof(platestring), "Army %i", i);
SetVehicleNumberPlate(ArmyVehs[i],platestring);
}
}
for(new i = 0; i < sizeof(PDCars); i++)
{
format(keystring,sizeof(keystring), "Car%i_Model",i);
fCarparkInfo[1] [i] [ModelId] = dini_Int("SAPDCars.ini",keystring);
format(keystring,sizeof(keystring), "Car%i_X",i);
fCarparkInfo[1] [i] [ParkX] = dini_Float("SAPDCars.ini",keystring);
format(keystring,sizeof(keystring), "Car%i_Y",i);
fCarparkInfo[1] [i] [ParkY] = dini_Float("SAPDCars.ini",keystring);
format(keystring,sizeof(keystring), "Car%i_Z",i);
fCarparkInfo[1] [i] [ParkZ] = dini_Float("SAPDCars.ini",keystring);
format(keystring,sizeof(keystring), "Car%i_Angle",i);
fCarparkInfo[1] [i] [ParkAngle] = dini_Float("SAPDCars.ini",keystring);
if(fCarparkInfo[1] [i] [ModelId] >= 400 && fCarparkInfo[1] [i] [ModelId] <= 611)
{
PDCars[i] = CreateVehicle(fCarparkInfo[1] [i] [ModelId], fCarparkInfo[1] [i] [ParkX], fCarparkInfo[1] [i] [ParkY], fCarparkInfo[1] [i] [ParkZ], fCarparkInfo[1] [i] [ParkAngle], 79, 1, 900);
format(platestring, sizeof(platestring), "SAPD %i", i);
SetVehicleNumberPlate(PDCars[i],platestring);
}
}
return 1;
}
Hab das PD system schon umgeschrieben aber es geht nix und wenn ich jetzt z.B das PdCarsys raus nehme klappts!
Wo ist der Fehler?
Hoffe es kann einer helfen
LG
Moritz
//e
brauche noch hilfe