29.06.2013, 20:38
Hey everyone.
I want to find the next empty slot in a two dimensional array. The function from the samp website does not work for me - i get a argument type mismatch (argument 1).
Here's the code:
I want to find the next empty slot in a two dimensional array. The function from the samp website does not work for me - i get a argument type mismatch (argument 1).
Here's the code:
Код:
new EmptySlot = FindEmptySlot(ClanInfo); // ClanInfo is my array
Код:
stock FindEmptySlot(array)
{
new
i = 0;
while (i < sizeof (array) && array[i])
{
i++;
}
if (i == sizeof (array)) return -1;
return i;
}

