12.09.2014, 18:25
Hello everybody. Well title is saying everything. I have problem with my squad system. When script need to generate a unique ID of Squad script output always number 3 I don`t know why. I checked code five times and I don`t see anything wrong. Well here is the code :
Anyone?
pawn Код:
stock GetFreeSquadSlot()
{
for(new i = 0; i < MAX_SQUADS; i++)
{
if(sInfo[i][SquadID] == 0) return i;
}
return -1;
}