02.02.2014, 10:34
I found the problem. The function is fine and it returns 0 which is a valid free slot. The mistake is in this line:
and it should be:
because if it's not -1, then there aren't free slots.
pawn Код:
if (CarSlot != 0)
pawn Код:
if (CarSlot != -1)