Multiple Cars per 'Character'
#3

Simply do a loop through the number of rows retrieved and assign the arrays.
pawn Код:
//Once the data is retrieved, loop through the rows:
for(new i = 0; i< rows i++)
{
    VehicleInfo[playerid][i][id] = CreateVehicle(...); // I assume "id" is supposed to store the vehicle ID, so store it.
    VehicleInfo[playerid][i][loaded] = true; //Once if things are done, set "loaded" boolean to true.
}
Reply


Messages In This Thread
Multiple Cars per 'Character' - by JonathanW - 04.01.2015, 13:17
Re: Multiple Cars per 'Character' - by JonathanW - 04.01.2015, 14:47
Re: Multiple Cars per 'Character' - by Lordzy - 04.01.2015, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)