Help with Car system
#6

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:

pawn Код:
enum vdata {
    vModel,
    vPos[3],
    etc..
    vVehicleID // This is the vehicleID variable i'm talking about.
}

// My vehicle loadscript

VehicleInfo[MyCurrentLoadingVehicleID][vVehicleID] = MyCurrentLoadingVehicleID;
Then later when the account loads.

pawn Код:
for(new i = 0; i < MAX_VEHICLES; i++ ) {
     if(PlayerInfo[playerid][vKey1] == VehicleInfo[i][vVehicleID]) {
           
     }
}
Or something like the example code above.
Reply


Messages In This Thread
Help with Car system - by Mystique - 08.08.2010, 08:26
Re: Help with Car system - by Carlton - 08.08.2010, 08:44
Re: Help with Car system - by Mystique - 08.08.2010, 08:51
Re: Help with Car system - by Carlton - 08.08.2010, 08:52
Re: Help with Car system - by Mystique - 08.08.2010, 08:55
Re: Help with Car system - by Carlton - 08.08.2010, 09:00
Re: Help with Car system - by Mystique - 08.08.2010, 09:06
Re: Help with Car system - by Carlton - 08.08.2010, 09:26
Re: Help with Car system - by Mystique - 08.08.2010, 11:10

Forum Jump:


Users browsing this thread: 1 Guest(s)