Manipulate data
#4

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
}
Reply


Messages In This Thread
Manipulate data - by bruxo00 - 16.10.2013, 18:39
Re: Manipulate data - by park4bmx - 16.10.2013, 21:31
Re: Manipulate data - by bruxo00 - 17.10.2013, 12:21
Re: Manipulate data - by Misiur - 17.10.2013, 14:35
Re: Manipulate data - by bruxo00 - 17.10.2013, 17:22
Re: Manipulate data - by Konstantinos - 17.10.2013, 17:26
Re: Manipulate data - by bruxo00 - 17.10.2013, 17:52
Re: Manipulate data - by bruxo00 - 20.10.2013, 11:13

Forum Jump:


Users browsing this thread: 1 Guest(s)