15.09.2011, 23:35
(
Последний раз редактировалось Magnetto; 16.09.2011 в 03:42.
)
Bueno yo tengo un GM con dos versiones una nueva y otra vieja pues resulta que me puse a modificar la nueva y de repente no me carga los autos del cars.cfg....
De ninguna manera y poniendo el antiguo si...
EDIT; Otra cosa a tener en cuenta es que los pickups tampoco aparecen...
Miren:
De ninguna manera y poniendo el antiguo si...
EDIT; Otra cosa a tener en cuenta es que los pickups tampoco aparecen...
Miren:
Quote:
//-=========================================== [][][] ==================================================- // for(new i; i<VV; i++) { new string[32]; //new Float:carpos_x,Float:carpos_y,Float:carpos_z; format(string, 128, "LS - %d",i); SetVehicleNumberPlate(i, string); //GetVehiclePos(i,carpos_x,carpos_y,carpos_z); SetVehicleToRespawn(i); //SetVehiclePos(i,carpos_x,carpos_y,carpos_z); } for(new h = VV; h < sizeof(CarInfo); h++) { AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000); if(CarInfo[h][cOwned] == 0) { SetVehicleNumberPlate(h, "For Sale"); SetVehicleVirtualWorld(h, 0); CarInfo[h][cBattery] = 100; SetVehicleParamsEx( h, 0, 0, 0, 0, 0, 0, 0 ); } else { SetVehicleNumberPlate(h, CarInfo[h][cPlate]); SetVehicleVirtualWorld(h, 5); SetVehicleParamsEx( h, 0, 0, 0, 1, 0, 0, 0 ); } SetVehicleToRespawn(h); } |
Quote:
public LoadCar() { new arrCoords[32][64]; new strFromFile2[256]; new File: file = fopen("cars.cfg", io_read); if (file) { printf("-========= Coches en venta =======-"); new idx = VV; while (idx < sizeof(CarInfo)) { fread(file, strFromFile2); split(strFromFile2, arrCoords, ','); CarInfo[idx][cModel] = strval(arrCoords[0]); CarInfo[idx][cLocationx] = floatstr(arrCoords[1]); CarInfo[idx][cLocationy] = floatstr(arrCoords[2]); CarInfo[idx][cLocationz] = floatstr(arrCoords[3]); CarInfo[idx][cAngle] = floatstr(arrCoords[4]); CarInfo[idx][cColorOne] = strval(arrCoords[5]); CarInfo[idx][cColorTwo] = strval(arrCoords[6]); strmid(CarInfo[idx][cOwner], arrCoords[7], 0, strlen(arrCoords[7]), 255); strmid(CarInfo[idx][cName], arrCoords[8], 0, strlen(arrCoords[8]), 255); CarInfo[idx][cValue] = strval(arrCoords[9]); CarInfo[idx][cOwned] = strval(arrCoords[10]); CarInfo[idx][cLock] = strval(arrCoords[11]); CarInfo[idx][cBattery] = strval(arrCoords[12]); CarInfo[idx][cSpoiler] = strval(arrCoords[13]); CarInfo[idx][cHood] = strval(arrCoords[14]); CarInfo[idx][cRoof] = strval(arrCoords[15]); CarInfo[idx][cSideskirt] = strval(arrCoords[16]); CarInfo[idx][cNitro] = strval(arrCoords[17]); CarInfo[idx][cLamps] = strval(arrCoords[18]); CarInfo[idx][cExhaust] = strval(arrCoords[19]); CarInfo[idx][cWheel] = strval(arrCoords[20]); CarInfo[idx][cHydraulics] = strval(arrCoords[21]); CarInfo[idx][cPaintjob] = strval(arrCoords[22]); CarInfo[idx][cNeon] = strval(arrCoords[23]); CarInfo[idx][cFrontBumper] = strval(arrCoords[24]); CarInfo[idx][cRearBumper] = strval(arrCoords[25]); CarInfo[idx][cVents] = strval(arrCoords[26]); CarInfo[idx][cEmbargo] = strval(arrCoords[27]); CarInfo[idx][cMulta] = strval(arrCoords[28]); strmid(CarInfo[idx][cPlate], arrCoords[29], 0, strlen(arrCoords[29]), 255); CarInfo[idx][cGas] = strval(arrCoords[30]); CarInfo[idx][cAlarm] = strval(arrCoords[31]); idx++; } } return 1; } |
Quote:
[01:33:05] Loaded 5 filter scripts. [01:33:06] -========= Coches en venta =======- [01:33:06] [Gamemode: Loaded 743 houses succesfully. ] [01:33:06] EnableTirePopping() function is removed. [01:33:06] Warning: EnableZoneNames() is removed since 0.3 [01:33:06] -=============== Objetos Cargados ===============- [01:33:06] - CreateDynamicObjetcs [8129] [01:33:06] -============================= *** ==============================- [01:33:06] [01:33:06] -============================= *** ==============================- [01:33:06] Todos los derechos reservados --- 2011-2012. [01:33:06] Number of vehicle models: 81 |