01.02.2013, 22:23
About the first code, i think this will work:
about the second , can you show me the stock of SaveExistingVehicle ?
pawn Код:
stock GetFreeVehicleSlot()
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
new string[1000];
format(string, sizeof(string), "Vehicles/Vehicle_%d.ini", i);
if(fexist(string)) continue;
else if(!fexist(string)) return i;
}
return -1;
}