05.08.2010, 18:06
(
Последний раз редактировалось Conroy; 05.08.2010 в 18:42.
)
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:
But it always returns 0, even with ForSale0.ini already created. Any ideas?
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;
}