23.02.2019, 12:23
This doesn't work like that:
As if there are no slots free, it will return -1, so either use Iter_Contains (as shown above) or check if Iter_Free's value is -1, then what do you mean by "the last created garage" ? Last loaded garage on the initialization?
pawn Код:
if(Iter_Free(Garages) >= MAX_GARAGES) return SCM(playerid, COLOR_ERROR, "» Server has reached max garages limit.");