04.06.2013, 17:16
Quote:
Well, just put "return VSlot + 1;" at the end of the function. It'll return a value for 1 bigger than it normally would, which should fix the issue.
|
pawn Код:
stock GetFreeVehicleSlot()
{
new VSlot;
for(new v = 0; v < MAX_VEHICLES; v ++)
{
VSlot = v;
if(VSlot != Vehicles[v][CarFileID])
{
return VSlot;
}
}
return VSlot+1;
}
Nope keeps returning the same thing untill I restart the script.