17.09.2012, 16:11
Код:
stock CountLockers() { new Lcount; for(new x=1; x < MAX_LOCKERS_POINT;x++) { new path[100]; for(new lockerid = 1; lockerid < MAX_LOCKERS_POINT; lockerid++) { format(path,sizeof(path),"/Factions/Locker%d.ini", lockerid); if(fexist(path)) { LockersPointCreated[lockerid] = 1; return 1; } else { LockersPointCreated[lockerid] = 0; return 1; } } } return Lcount; }