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
#2

Anyone please I really need help. and sorry for double posting
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)