18.11.2018, 15:09
hi guys so i was working on my Familly System , so i want to if the clan slots are full no one can create familly anymore , here is my code :
so , if a familly has name it will go to next one and it should work like this : if there was a empty slot (no name = empty) fid = i; (i will use fid for the familly id) but now, even if it is not empty, it will be replaced by familly who has 0 ID ! i mean it will replace with the first fam can you please edit this code along with an explanation ? thnx guys !
Код:
#define MAX_FAMS 5 new fid; for(new i=0; i != MAX_FAMS; i++) { if(FamStat[i][FamName]) { continue; } else { fid = i; break; } } if(fid > MAX_GANGS) return SendClientMessage(playerid, 0xffffffff, "No More Empty Slot , Try Again Later");