26.06.2012, 04:04
It's complaining about that because you actually do have a return value in certain cases, but not in all cases. It's complaining because you should have a return value in all cases if you're going to have any at all.
So consider adding:
To the end. You could use it to specify when there are no empty passenger slots, for example:
I hope that makes sense.
So consider adding:
pawn Код:
return -1;
pawn Код:
new slot = GetNextEmptyDoorSlot();
if(slot != -1) PutPlayerInVehicle(playerid, vehicleid, slot);