01.09.2014, 23:45
Quote:
Si, se puede. Pero si no dejas el cуdigo nadie te va a poder ayudar a modificarlo.
|
Cual cуdigo disculpa? te refieres a este:
Код:
LoadDynamicDoors() { new arrCoords[27][64]; new strFromFile2[256]; new File: file = fopen("dynamicdoors.cfg", io_read); if (file) { new idx; while (idx < sizeof(DDoorsInfo)) { fread(file, strFromFile2); splits(strFromFile2, arrCoords, '|'); strmid(DDoorsInfo[idx][ddDescription], arrCoords[0], 0, strlen(arrCoords[0]), 128); DDoorsInfo[idx][ddCustomInterior] = strval(arrCoords[1]); DDoorsInfo[idx][ddExteriorVW] = strval(arrCoords[2]); DDoorsInfo[idx][ddExteriorInt] = strval(arrCoords[3]); DDoorsInfo[idx][ddInteriorVW] = strval(arrCoords[4]); DDoorsInfo[idx][ddInteriorInt] = strval(arrCoords[5]); DDoorsInfo[idx][ddExteriorX] = floatstr(arrCoords[6]); DDoorsInfo[idx][ddExteriorY] = floatstr(arrCoords[7]); DDoorsInfo[idx][ddExteriorZ] = floatstr(arrCoords[8]); DDoorsInfo[idx][ddExteriorA] = floatstr(arrCoords[9]); DDoorsInfo[idx][ddInteriorX] = floatstr(arrCoords[10]); DDoorsInfo[idx][ddInteriorY] = floatstr(arrCoords[11]); DDoorsInfo[idx][ddInteriorZ] = floatstr(arrCoords[12]); DDoorsInfo[idx][ddInteriorA] = floatstr(arrCoords[13]); DDoorsInfo[idx][ddCustomExterior] = strval(arrCoords[14]); DDoorsInfo[idx][ddVIP] = strval(arrCoords[15]); DDoorsInfo[idx][ddDJ] = strval(arrCoords[16]); DDoorsInfo[idx][ddFamily] = strval(arrCoords[17]); DDoorsInfo[idx][ddFaction] = strval(arrCoords[18]); DDoorsInfo[idx][ddAdmin] = strval(arrCoords[19]); DDoorsInfo[idx][ddWanted] = strval(arrCoords[20]); DDoorsInfo[idx][ddVehicleAble] = strval(arrCoords[21]); DDoorsInfo[idx][ddColor] = strval(arrCoords[22]); DDoorsInfo[idx][ddPickupModel] = strval(arrCoords[23]); strmid(DDoorsInfo[idx][dPass], arrCoords[24], 0, strlen(arrCoords[24]), 24); DDoorsInfo[idx][dLocked] = strval(arrCoords[25]); DDoorsInfo[idx][dMusic] = strval(arrCoords[26]); if(!isnull(DDoorsInfo[idx][ddDescription])) { CreateDynamicDoor(idx); } idx++; } print("DynamicDoors Loaded Successfully . . ."); fclose(file); } return 1; }