Posts: 414
Threads: 93
Joined: Dec 2010
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.