08.08.2010, 09:00
Ehm, i'm not to good with files honestly. I'm sure you're using two dimesion arrays for the vehicle stats. When loading those, use a new variable that's supposed to be the vehicle ID. Ehm, this is an example:
Then later when the account loads.
Or something like the example code above.
pawn Код:
enum vdata {
vModel,
vPos[3],
etc..
vVehicleID // This is the vehicleID variable i'm talking about.
}
// My vehicle loadscript
VehicleInfo[MyCurrentLoadingVehicleID][vVehicleID] = MyCurrentLoadingVehicleID;
pawn Код:
for(new i = 0; i < MAX_VEHICLES; i++ ) {
if(PlayerInfo[playerid][vKey1] == VehicleInfo[i][vVehicleID]) {
}
}

