Hi , I am in need of a solution, it doesn't have to be necessarily the plublic_rules.sma but the amxmisc.inc . I know if i get a solution to amxmisc.inc i can then do it for public rules. How can this error be fixed ?
Using Amxmodx 1.8.1
Thank You.
[AMXX] Run time error 10: native error (native "get_user_flags")
L 06/19/2009 - 05:40

3: [AMXX] [0] amxmisc.inc::cmd_access (line 50)
L 06/19/2009 - 05:40

3: [AMXX] [1] public_rules.sma::rules (line 212)
It has something to do with get user flags :
ammisc.inc Lines 50- 53
PHP Code:
else if ( get_user_flags(id) & level )
{
has_access = 1;
}
And if it makes it any easier
public_rules lines 207-214
PHP Code:
public rules(id, level, cid)
{
new pID[1]
pID[0] = id
if (!cmd_access(id, level, cid, 0)) { // NOT ADMIN
return PLUGIN_HANDLED
}