Help with open carslot problem.
#4

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


Messages In This Thread
Help with open carslot problem. - by thimo - 02.02.2014, 10:04
Re: Help with open carslot problem. - by Konstantinos - 02.02.2014, 10:07
Re: Help with open carslot problem. - by thimo - 02.02.2014, 10:09
Re: Help with open carslot problem. - by Konstantinos - 02.02.2014, 10:34
Re: Help with open carslot problem. - by thimo - 02.02.2014, 10:58

Forum Jump:


Users browsing this thread: 1 Guest(s)