Problem Help Please [+REP For Helper]
#1

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 :
Код:
        #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");
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 !
Reply


Messages In This Thread
Problem Help Please [+REP For Helper] - by PoniStar - 18.11.2018, 15:09
Re: Problem Help Please [+REP For Helper] - by ReD_HunTeR - 18.11.2018, 17:06
Re: Problem Help Please [+REP For Helper] - by PoniStar - 18.11.2018, 18:24

Forum Jump:


Users browsing this thread: 1 Guest(s)