Amxmodx 1.8.1 [AMXX] Run time error 10: native error (native "get_user_flags")
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:33: [AMXX] [0] amxmisc.inc::cmd_access (line 50) L 06/19/2009 - 05:40:33: [AMXX] [1] public_rules.sma::rules (line 212) It has something to do with get user flags : ammisc.inc Lines 50- 53 PHP Code:
public_rules lines 207-214 PHP Code:
|
Re: Amxmodx 1.8.1 [AMXX] Run time error 10: native error (native "get_user_flags")
How you register your command ?
If not a client command, id would be 0, thus you should not use cmd_access. |
Re: Amxmodx 1.8.1 [AMXX] Run time error 10: native error (native "get_user_flags")
Hmm, I wish I knew what you were talking about :) ? Would you like me to post the whole code of either one of them?
Kind Regards |
Re: Amxmodx 1.8.1 [AMXX] Run time error 10: native error (native "get_user_flags")
Arkshine want to know from where the function rules comes from.
Something like register_clcmd("amx_rules", "rules", ADMIN_FLAG) in plugin_init ? Also, for sure, if (!cmd_access(id, level, cid, 0)) { // NOT ADMIN should be : if (!cmd_access(id, level, cid, 1)) { // NOT ADMIN 1 is the min value, when no args are passed after the cmd. |
Re: Amxmodx 1.8.1 [AMXX] Run time error 10: native error (native "get_user_flags")
Heyyyyy its Connor,
Nice to hear from you. I try so much of the time to not talk to you, well you know why, it begins to become annoying. Well anyways from your recommendation, I should change that 0 into a 1 right ? And as for the plugin_init PHP Code:
|
Re: Amxmodx 1.8.1 [AMXX] Run time error 10: native error (native "get_user_flags")
Yes, change the 0 to 1.
And please show the whole function, i'm curious about why you are settings some parms. |
Re: Amxmodx 1.8.1 [AMXX] Run time error 10: native error (native "get_user_flags")
Sure , If show hole function means the whole plugin lol
PHP Code:
|
| All times are GMT -4. The time now is 15:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.