01.05.2012, 16:38
vehTrunk[idx][0] = strval(arrCoords[0]);
vehTrunkAmmo[idx][0] = strval(arrCoords[1]);
vehTrunk[idx][1] = strval(arrCoords[2]);
vehTrunkAmmo[idx][1] = strval(arrCoords[3]);
vehTrunk[idx][2] = strval(arrCoords[4]);
vehTrunkAmmo[idx][2] = strval(arrCoords[5]);
vehTrunk[idx][3] = strval(arrCoords[6]);
vehTrunkAmmo[idx][3] = strval(arrCoords[7]);
Starts from 0 not 1...
Unless you're supposed to have 5 then the array is wrong.
new vehTrunk[][]; <- show the numbers.
vehTrunkAmmo[idx][0] = strval(arrCoords[1]);
vehTrunk[idx][1] = strval(arrCoords[2]);
vehTrunkAmmo[idx][1] = strval(arrCoords[3]);
vehTrunk[idx][2] = strval(arrCoords[4]);
vehTrunkAmmo[idx][2] = strval(arrCoords[5]);
vehTrunk[idx][3] = strval(arrCoords[6]);
vehTrunkAmmo[idx][3] = strval(arrCoords[7]);
Starts from 0 not 1...
Unless you're supposed to have 5 then the array is wrong.
new vehTrunk[][]; <- show the numbers.