Enabled and disabled problem
Im creating a World of Warcraft mod for amxmodx. With the inventory, the bags, the weapons and skills. a lot of work ahead :P 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:
Code:
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" |
where else are you using the bool enabled ?
|
Who script?
|
@suicid3: my own
@teame06: I will be using it when an admin will try to enable or disable the other stuff(ex.:bags, inventory) |
It just telling you that you havn't used it for nothing yet.
If you make a fake function to test it like.. Code:
Then it go away but other than that you really havn't used it. |
Wow I'm really tired.....I meant to say "Post the script" but instead started to as "Whole script?" then it came out as "Who script?"
Good night. |
rofl, so about the on off command. anyone know why it aint working? (wow_enabled isnt even registered as a command)
if you guyz want to see the hole code now: Code:
|
Quote:
|
I missed typed in the other post i meant wow_enable
|
The reason is that you dont have functions for the other commands. And when plugin_init() get to a register_clcmd() with no function it stops running everything else. So either make the other functions first or comment out the lines with register_clcmd() that dont do anything
|
| All times are GMT -4. The time now is 16:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.