Player Permission System
#3

as the error implies..u cannot make string[] as an index of an array or maybe the fault is in the declaration of global variable
pawn Код:
new srPerms[id][perm];
//that should be
new srPerms[id][perm[]];//perm needs an enum
correct me if im wrong

ex: will actually look like if the index is a string
pawn Код:
CMD:example(playerid,params[])
{
    new string[]={a,b,c,d,e};
    StaffRolePerm(playerid,string[]);
    return 1;
}

stock StaffRolePerm(playerid,string[])//subbed already
{
    return srPerms[playerid][{a,b,c,d,e}];//this will give you error because index "perm" is not yet enumed
}
i think you can fix that if u make an enum
pawn Код:
enum perm
{
blah1,
blah2,
blah3,
blah4,
blah5,
}
Reply


Messages In This Thread
Player Permission System - by jtemple042996 - 05.10.2014, 03:18
Re: Player Permission System - by Josh_Main - 05.10.2014, 04:45
Re: Player Permission System - by Quickie - 05.10.2014, 12:37

Forum Jump:


Users browsing this thread: 1 Guest(s)