Loading 1 all time when creating new.
#3

Quote:
Originally Posted by Jefff
Посмотреть сообщение
pawn Код:
stock GetATMs()
{
    new file[15];
    for(new i = 0; i < MAX_ATM;i++)
    {
        format(file,sizeof(file),"/ATMs/%i.ini",i);
        if(!dini_Exists(file)) return i;
    }
    return -1;
}
pawn Код:
new FreeSlot = GetATMs();
if(FreeSlot == -1) return Is now MAX_ATM files
// code here
Thanks.
Reply


Messages In This Thread
Loading 1 all time when creating new. - by jueix - 23.12.2013, 17:36
Re: Loading 1 all time when creating new. - by Jefff - 23.12.2013, 18:09
Re: Loading 1 all time when creating new. - by jueix - 23.12.2013, 19:18

Forum Jump:


Users browsing this thread: 1 Guest(s)