25.03.2013, 17:29
the code is good but there are function that are not needed, which simply means more time to process because of the checks.
pawn Код:
stock GetFreeID()
{
new file[12];
for(new ID = 0; ID < MAX_SAVED_VEHICLES; ID++)
{
format(file, file(string), "%d.INI", ID);
if(!fexist(file)) return ID;
}
}