Help with a vehicle system
#3

Alright, but I would also have an issue with that.

I created vehicles at the start of the gamemode, which do not have an owner, how could I save those?

Ex: ForSale1, ForSale2, ForSale3 etc etc, how could I get the next unused number?

-Conroy

EDIT:

I tried this:

pawn Код:
stock ReturnNextSaleVehicleFileName()
{
    new filename[40], i, filenumber[40], lastint;
    while(ffind("\\Vehicles\\ForSale*.ini", filename, 64, i)) {
        strmid(filenumber, filename, 19, sizeof(filename));
        if(strval(filenumber) > lastint) lastint = strval(filenumber);
    }
    return lastint;
}
But it always returns 0, even with ForSale0.ini already created. Any ideas?
Reply


Messages In This Thread
Help with a vehicle system - by Conroy - 05.08.2010, 00:28
Re: Help with a vehicle system - by DJDhan - 05.08.2010, 00:52
Re: Help with a vehicle system - by Conroy - 05.08.2010, 18:06
Re: Help with a vehicle system - by Kar - 05.08.2010, 20:55
Re: Help with a vehicle system - by Conroy - 05.08.2010, 22:01

Forum Jump:


Users browsing this thread: 2 Guest(s)