Random ID for Squad`s problem
#1

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 :

pawn Код:
stock GetFreeSquadSlot()
{
    for(new i = 0; i < MAX_SQUADS; i++)
    {
        if(sInfo[i][SquadID] == 0) return i;
    }
    return -1;
}
Anyone?
Reply


Messages In This Thread
Random ID for Squad`s problem - by Sanady - 12.09.2014, 18:25
Re: Random ID for Squad`s problem - by Sanady - 12.09.2014, 18:54

Forum Jump:


Users browsing this thread: 1 Guest(s)