Save Problem +REP
#4

You will need to loop through all of the vehicles (using a for() loop):

pawn Код:
public SaveCarCoords()
{
    for (new i = 1; i<MAX_VEHICLES; i++)//set a variable equal to 1 (first vehicle id) and loop it through max vehicles
    {
        if(GetVehicleModel(i)!=0) //GetVehicleModel returns 0 if the vehicle doesn't exist
        {
            //save the car to the file
        }
    }
    return 1;
}
Reply


Messages In This Thread
Save Problem +REP - by peterory - 01.06.2012, 01:11
Re: Save Problem +REP - by Yuryfury - 01.06.2012, 01:47
Re: Save Problem +REP - by peterory - 01.06.2012, 02:03
Re: Save Problem +REP - by Yuryfury - 01.06.2012, 03:15
Re: Save Problem +REP - by peterory - 01.06.2012, 03:37

Forum Jump:


Users browsing this thread: 1 Guest(s)