Solved
#2

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:

pawn Код:
return -1;
To the end. You could use it to specify when there are no empty passenger slots, for example:

pawn Код:
new slot = GetNextEmptyDoorSlot();

if(slot != -1) PutPlayerInVehicle(playerid, vehicleid, slot);
I hope that makes sense.
Reply


Messages In This Thread
Solved - by ReneG - 26.06.2012, 04:01
Re: Solved - by JaTochNietDan - 26.06.2012, 04:04
Re: Solved - by dowster - 26.06.2012, 04:04

Forum Jump:


Users browsing this thread: 1 Guest(s)