Raised This Month: $ Target: $400
 0% 

Menus wont work AHHH!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Candy Man
Junior Member
Join Date: Dec 2005
Old 01-01-2006 , 00:50   Menus wont work AHHH!
Reply With Quote #1

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.
Candy Man is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 01-01-2006 , 01:05  
Reply With Quote #2

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.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Candy Man
Junior Member
Join Date: Dec 2005
Old 01-01-2006 , 02:12  
Reply With Quote #3

hahahahhahah

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
Candy Man is offline
Candy Man
Junior Member
Join Date: Dec 2005
Old 01-01-2006 , 16:36  
Reply With Quote #4

[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
Candy Man is offline
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 16:08.


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