Problema guardado conce
#1

Bueno, tengo este problema en el guardado de concesionario GM base Actividad RP, no se me guardan los concesionarios creados, y los que habia por default de un dia para otro se borraron, no se que pude haber tocado en la gm no se me ocurre

Quote:

SavecDealership(id)
{
new idx2;
new string[128];
format(string, sizeof(string), "%d/owned", id);
djSetInt("cardealerships.json", string, CDSInfo[id][cdOwned]);
format(string, sizeof(string), "%d/owner", id);
djSet("cardealerships.json", string, CDSInfo[id][cdOwner]);
format(string, sizeof(string), "%d/entrance/x", id);
djSetFloat("cardealerships.json", string, CDSInfo[id][cdEntranceX]);
format(string, sizeof(string), "%d/entrance/y", id);
djSetFloat("cardealerships.json", string, CDSInfo[id][cdEntranceY]);
format(string, sizeof(string), "%d/entrance/z", id);
djSetFloat("cardealerships.json", string, CDSInfo[id][cdEntranceZ]);
format(string, sizeof(string), "%d/exit/x", id);
djSetFloat("cardealerships.json", string, CDSInfo[id][cdExitX]);
format(string, sizeof(string), "%d/exit/y", id);
djSetFloat("cardealerships.json", string, CDSInfo[id][cdExitY]);
format(string, sizeof(string), "%d/exit/z", id);
djSetFloat("cardealerships.json", string, CDSInfo[id][cdExitZ]);
format(string, sizeof(string), "%d/message", id);
djSet("cardealerships.json", string, CDSInfo[id][cdMessage]);
format(string, sizeof(string), "%d/till", id);
djSetInt("cardealerships.json", string, CDSInfo[id][cdTill]);
format(string, sizeof(string), "%d/interior", id);
djSetInt("cardealerships.json", string, CDSInfo[id][cdInterior]);
format(string, sizeof(string), "%d/vehiclespawn/x", id);
djSetFloat("cardealerships.json", string, CDSInfo[id][cdVehicleSpawn][0]);
format(string, sizeof(string), "%d/vehiclespawn/y", id);
djSetFloat("cardealerships.json", string, CDSInfo[id][cdVehicleSpawn][1]);
format(string, sizeof(string), "%d/vehiclespawn/z", id);
djSetFloat("cardealerships.json", string, CDSInfo[id][cdVehicleSpawn][2]);
format(string, sizeof(string), "%d/vehiclespawn/a", id);
djSetFloat("cardealerships.json", string, CDSInfo[id][cdVehicleSpawn][3]);
format(string, sizeof(string), "%d/radius", id);
djSetFloat("cardealerships.json", string, CDSInfo[id][cdRadius]);
format(string, sizeof(string), "%d/price", id);
djSetInt("cardealerships.json", string, CDSInfo[id][cdPrice]);
while (idx2 < MAX_DEALERSHIPVEHICLES)
{
format(string, sizeof(string), "%d/vehicleangle/%d", id, idx2);
djSetFloat("cardealerships.json", string, CDSInfo[id][cdVehicleSpawnAngle][idx2]);
format(string, sizeof(string), "%d/vehiclespawnx/%d", id, idx2);
djSetFloat("cardealerships.json", string, CDSInfo[id][cdVehicleSpawnX][idx2]);
format(string, sizeof(string), "%d/vehiclespawny/%d", id, idx2);
djSetFloat("cardealerships.json", string, CDSInfo[id][cdVehicleSpawnY][idx2]);
format(string, sizeof(string), "%d/vehiclespawnz/%d", id, idx2);
djSetFloat("cardealerships.json", string, CDSInfo[id][cdVehicleSpawnZ][idx2]);
format(string, sizeof(string), "%d/vehiclecost/%d", id, idx2);
djSetInt("cardealerships.json", string, CDSInfo[id][cdVehicleCost][idx2]);
format(string, sizeof(string), "%d/vehicletypes/%d", id, idx2);
djSetInt("cardealerships.json", string, CDSInfo[id][cdVehicleModel][idx2]);
idx2++;
}
return 1;
}

Reply
#2

Y que variable seria la del concesionario?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)