Raised This Month: $ Target: $400
 0% 

Error in compiling.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 07-23-2014 , 11:16   Re: Error in compiling.
Reply With Quote #1

http://pastebin.com/MJFSNBZ8

If you are setting the access flag for the command in register_clcmd() you need to check the access with cmd_access() in the command handler, or as I did, you just remove the admin flag in the register_clcmd() and check using get_user_flags() manually in the command handler.
mottzi is offline
Send a message via MSN to mottzi
LoRikU
Junior Member
Join Date: Jul 2014
Location: Unknown.
Old 07-23-2014 , 11:30   Re: Error in compiling.
Reply With Quote #2

Uhmm I'm sorry but I'm really noob in scripting as shown in my signature. Thanks so much anyway !
__________________
Quote:
Originally Posted by Arkshine View Post
Thanks LoRikU!
Noob in scripting. Maybe some help could work? PM me if u think you are the one that can help me out!
LoRikU is offline
Send a message via Skype™ to LoRikU
NikKOo31
Senior Member
Join Date: May 2013
Location: Home
Old 07-23-2014 , 11:52   Re: Error in compiling.
Reply With Quote #3

PHP Code:
public checkCommand(id){ 
     
    
menuMain(id,0
     
    return 
PLUGIN_HANDLED


PHP Code:
public checkCommand(idlevelcid){ 
     if(
cmd_access(idlevelcid1)
    
menuMain(id,0
     
    return 
PLUGIN_HANDLED

Also check this
__________________
Hey ^_^
NikKOo31 is offline
LoRikU
Junior Member
Join Date: Jul 2014
Location: Unknown.
Old 07-23-2014 , 12:00   Re: Error in compiling.
Reply With Quote #4

So this is how u change the access of a command? Ok, thanks a lot to all of you. I will learn in the future, the plugin works also fine though. Thanks a lot, I really appriciate your help and time.
__________________
Quote:
Originally Posted by Arkshine View Post
Thanks LoRikU!
Noob in scripting. Maybe some help could work? PM me if u think you are the one that can help me out!
LoRikU is offline
Send a message via Skype™ to LoRikU
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode