Menus wont work AHHH!
I have a set up of a few menus to give a player a gun, which works, its the menus that don't... the first menu (black market and extramenu) is the one
the player sees when he types blackmarket into the console, it works fine, the seond: gun menu sorta works, it shows up but it gives guns like it was the shotgun menu As in it shows the menu but the register_menucmd sees it as the shotgun menu somehow, I think... please tell me what is wrong with my menus: oh yea, there are also a couple of really long strings, if you could tell me how to shorten it, that'd be great! plz there must be something wrong, I spent 3 hrs trying different stuff, [EDIT] Got rid of the huge uglly "messy" script and trying to look up answers, now plz help me 'cause my head hurts :) ... :( I also know that some weapon names are wrong but I'm still working on it just this is EXTREMELY annoying also sry about posting my whole plugin but I'd thought you need it. |
http://forums.alliedmods.net/showthread.php?t=6481
Here you go.. Your scripting structure to messy to look threw. You might want to read that link and clean it up for people to clearly be able to read it. |
hahahahhahah :lol:
I'm not surprised even I get annoyed by the messyness, it's too messy to work with and fix, but I'll clean it up |
[Edit]
Long Version: I fixed my problem! I was using the word Rifles in the gun menu causing the stupid thing to think that it was for the rifle menu so I changed it to rifle weapons and it works fine Short Version: You can't use a frase that is being registered as menu A in a menu that should be registered as B Example: (not actually correct thing) register_menu(menuid(A... reigster_menu(menuid(B... (this is menu A)show menu(..." A " (this is menu B)show_menu(..." B A" this will cause the plugin ingame to think menu B is menu A causing the keyinformation to go to the A function not B even though it will show the B menu Hope that's clear enough... Problaby not, But this is the stupid part: NO where in the tutorial does it explaint this... it says the menu id must appear in your menu but it doesn't explain what will hapen if you try to put 2 registered phrases in 1 menu |
| All times are GMT -4. The time now is 16:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.