26.10.2016, 16:20
Код:
#define MAX_FACTIONS 10 // at defines stock GetUnusedFaction() { new hf[64]; for(new h=0; h<=MAX_FACTIONS; h++) { format(hf,sizeof(hf),"The file you saving factions",h); if(dini_Exists(hf)) continue; return h; } return -1; }
The codes that are up here will get the unused faction slot and also reads if the max_factions has been reached.