Raised This Month: $ Target: $400
 0% 

Enabled and disabled problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DarlD
Senior Member
Join Date: Aug 2004
Old 12-16-2005 , 23:24   Enabled and disabled problem
Reply With Quote #1

Im creating a World of Warcraft mod for amxmodx. With the inventory, the bags, the weapons and skills. a lot of work ahead and i have to admit this plugin might be a little bit out of my league, but eh what the eck!

Im using a bool to enable and disable all the commands at once
Code:
new bool:enabled
And i use read_argv to set it, like so:
Code:
public enable(id,level,cid)     {     if (!cmd_access(id,level,cid,1))         {         client_print(id,print_console,"[World Of Warcraft]: You have no access to this command")         return PLUGIN_HANDLED     }     new arg[11]     read_argv(1,arg,10)         if ( (equali(arg,"on", 2)) || (equal(arg,"1", 1)) )         {         enabled = true         client_print(0,print_chat,"[World Of Warcraft] is now Enabled")         client_print(0,print_console,"[World Of Warcraft] is now Enabled")     }     else     if ( (equali(arg,"off",3)) || (equal(arg,"0",4)) )         {         enabled = false         client_print(0,print_chat,"[World Of Warcraft] is now Disabled")         client_print(0,print_console,"[World Of Warcraft] is now Disabled")     }     return PLUGIN_HANDLED }

problem is that the cmds are not registering. when i type wow_enabled on in the console it does nothing

getting 1 warning when i try to compile
Code:
warning 204: symbol is assigned a value that is never used: "enabled"
__________________
DarlD is offline
Send a message via MSN to DarlD
 



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 16:01.


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