Factions not working.
#3

I presume you have:
pawn Код:
new fInfo[MAX_PLAYERS][Factionenum];
Are you saw your '!PermissionCheck(playerid,4))' is right? That's in other words saying IS NOT [function PermissionCheck...]. Check this function/stock please.

Try:

pawn Код:
CMD:makeleader(playerid, params[])
{
    new id, factionid;
    if(!PermissionCheck(playerid, 4))
    {
        if(sscanf(params,"ii", id, faction))return SendClientMessage(playerid,-1,"SERVER: /makeleader [id] [faction]");
        switch(faction)
        {
            case 0:{
                        SendClientMessage(id,-1," Your faction's been set to 0, therefore you aren't in one.");
                        fInfo[id][Faction] = 0;
                        fInfo[id][Leader] = 0;
                        fInfo[id][Rank] = 6;
            }
            case 1:{          
                        SendClientMessage(id,-1,"You're now the leader of the Sheriff's Department.");
                        fInfo[id][Faction] = 1;
                        fInfo[id][Leader] = 1;
                        fInfo[id][Rank] = 6;
            }
            case 2:{
                        SendClientMessage(id,-1,"You have been made the leader of the Emergency Servies.");
                        fInfo[id][Faction] = 2;
                        fInfo[id][Leader] = 0;
                        fInfo[id][Rank] = 6;
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Factions not working. - by mkmk - 28.11.2014, 19:35
Re: Factions not working. - by mkmk - 28.11.2014, 23:33
Re: Factions not working. - by iiNzTicTx - 28.11.2014, 23:48
Re: Factions not working. - by mkmk - 29.11.2014, 10:46
Re: Factions not working. - by mkmk - 29.11.2014, 11:51
Re: Factions not working. - by mkmk - 29.11.2014, 14:30
Re: Factions not working. - by BornHuman - 29.11.2014, 15:26
Re: Factions not working. - by DaniceMcHarley - 29.11.2014, 16:46

Forum Jump:


Users browsing this thread: 3 Guest(s)