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
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"
__________________