17.10.2013, 14:35
You have to loop through your iCarInfo to get the right index
pawn Код:
new arroz;
arroz = iCarInfo[carro][cID];
//to
new
arroz = INVALID_VEHICLE_ID;
for(new i = 0; i != sizeof(iCarInfo); ++i) {
if(iCarInfo[i][cID] == carro) {
arroz = carro;
break;
}
}
if(arroz == INVALID_VEHICLE_ID) {
//This indicates that car is not in iCarInfo table
}