Menu code gets a warning?
Hey everyone, I'm trying to make a menu (I yanked alot of this menu code from another post). My problem is when I compile it gives me a warning.
Here is the warning it gives me... Quote:
Here is all the code I use for the menu... Code:
If anyone can help me fix this please do :)! |
Re: Menu code gets a warning?
Code:
should be: Code:
:) |
Re: Menu code gets a warning?
Wow I feel extremely stupid for not catching that! Anyhow, now that is fixed, I get errors.
Here are the errors... Quote:
BTW, here is the code where the errors are, I will comment the error lines. Code:
|
Re: Menu code gets a warning?
Try this:
make sure you got the menuid right Code:
|
Re: Menu code gets a warning?
I tried that and still none of the menu numbers will work. The menu shows up, but none of the numbers will do anything.
|
Re: Menu code gets a warning?
then post the whole plugin
|
Re: Menu code gets a warning?
3 things:
1:remove/change Code:
Code:
2:change "\yMain Menu: " to "Main Menu: ",i thing he dont can get menuid by special chars. 3:as i know are quotes not needed Code:
Code:
At last test the menu by using a client_print message:client_print(id,print_chat,"you have pressed key %d",key) |
Re: Menu code gets a warning?
Things I would change: (in boldface)
Code:
public plugin_init() {2. Remove "menu_mainMenu" 3. Remove , |
| All times are GMT -4. The time now is 06:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.