12.03.2011, 16:57
Hello, i'm attempting to compile my script, but it has 5 errors, it was 9 errors but i managed to fix it down to 5, but nothing i try seems to work for this:
and i get this in my compile log:
Код:
public LoadRefundCars() { new arrCoords[42][64]; new strFromFile2[256]; new File: file = fopen("cars2.cfg", io_read); if (file) { new idx; while (idx < sizeof(RefundcInfo)) { fread(file, strFromFile2); split(strFromFile2, arrCoords, ','); RefundcInfo[idx][rcModel] = strval(arrCoords[0]) RefundcInfo[idx][rcLocationx] = floatstr(arrCoords[1]); RefundcInfo[idx][rcLocationy] = floatstr(arrCoords[2]); RefundcInfo[idx][rcLocationz] = floatstr(arrCoords[3]); RefundcInfo[idx][rcAngle] = floatstr(arrCoords[4]); RefundcInfo[idx][rcColorOne] = strval(arrCoords[5]); RefundcInfo[idx][rcColorTwo] = strval(arrCoords[6]); strmid(RefundcInfo[idx][rcOwner], arrCoords[7], 0, strlen(arrCoords[7]), 255); strmid(RefundcInfo[idx][rcDescription], arrCoords[8], 0, strlen(arrCoords[8]), 255); RefundcInfo[idx][rcValue] = strval(arrCoords[9]); RefundcInfo[idx][rcLicense] = strval(arrCoords[10]); RefundcInfo[idx][rcOwned] = strval(arrCoords[11]); RefundcInfo[idx][rcLock] = strval(arrCoords[12]); RefundcInfo[idx][rcMod][0] = strval(arrCoords[13]); RefundcInfo[idx][rcMod][1] = strval(arrCoords[14]); RefundcInfo[idx][rcMod][2] = strval(arrCoords[15]); RefundcInfo[idx][rcMod][3] = strval(arrCoords[16]); RefundcInfo[idx][rcMod][4] = strval(arrCoords[17]); RefundcInfo[idx][rcMod][5] = strval(arrCoords[18]); RefundcInfo[idx][rcMod][6] = strval(arrCoords[19]); RefundcInfo[idx][rcMod][7] = strval(arrCoords[20]); RefundcInfo[idx][rcMod][8] = strval(arrCoords[21]); RefundcInfo[idx][rcMod][9] = strval(arrCoords[22]); RefundcInfo[idx][rcDonate] = strval(arrCoords[23]); RefundcInfo[idx][rcFuel] = strval(arrCoords[24]); RefundcInfo[idx][rcTrunkWep][1] = strval(arrCoords[25]); RefundcInfo[idx][rcTrunkAmmo][1] = strval(arrCoords[26]); RefundcInfo[idx][rcTrunkWep][2] = strval(arrCoords[27]); RefundcInfo[idx][rcTrunkAmmo][2] = strval(arrCoords[28]); RefundcInfo[idx][rcTrunkWep][3] = strval(arrCoords[29]); RefundcInfo[idx][rcTrunkAmmo][3] = strval(arrCoords[30]); RefundcInfo[idx][rcTrunkWep][4] = strval(arrCoords[31]); RefundcInfo[idx][rcTrunkAmmo][4] = strval(arrCoords[32]); RefundcInfo[idx][rcTrunkArmour] = floatstr(arrCoords[33]); RefundcInfo[idx][rcTrunkCounter] = strval(arrCoords[34]); RefundcInfo[idx][rcAlarm] = strval(arrCoords[35]); RefundcInfo[idx][rcTrunkDrugs] = strval(arrCoords[36]); RefundcInfo[idx][rcTrunkMats] = strval(arrCoords[37]); RefundcInfo[idx][rcImpounded] = strval(arrCoords[38]); RefundcInfo[idx][rcImpoundedPrice] = strval(arrCoords[39]); RefundcInfo[idx][rcInsur] = strval(arrCoords[40]); RefundcInfo[idx][rcHealth] = floatstr(arrCoords[41]); idx++; } } fclose(file); return 1; }
Код:
C:\Users\little annies\DS\gamemodes\OnGameMode.pwn(37) : error 020: invalid symbol name "" C:\Users\little annies\DS\gamemodes\OnGameMode.pwn(40) : warning 215: expression has no effect C:\Users\little annies\DS\gamemodes\OnGameMode.pwn(41) : error 029: invalid expression, assumed zero C:\Users\little annies\DS\gamemodes\OnGameMode.pwn(41) : warning 215: expression has no effect C:\Users\little annies\DS\gamemodes\OnGameMode.pwn(41) : error 001: expected token: ";", but found "]" C:\Users\little annies\DS\gamemodes\OnGameMode.pwn(41) : error 029: invalid expression, assumed zero C:\Users\little annies\DS\gamemodes\OnGameMode.pwn(41) : fatal error 107: too many error messages on one line