Raised This Month: $ Target: $400
 0% 

Zero key doesn't work?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Afrow UK
Junior Member
Join Date: Feb 2007
Old 08-29-2007 , 10:19   Re: Zero key doesn't work?
Reply With Quote #4

I just tried MENU_KEY_0 in a small test plugin:
Code:
public message_resethud(id)
{
  show_menu(id, MENU_KEY_0, "Accept?", -1, "blah!")
}

public plugin_init()
{
  register_plugin("test", "0.1", "")
  register_event("ResetHUD", "message_resethud", "be")
  register_menucmd(register_menuid("blah!"), MENU_KEY_0, "player_vote")
}

public player_vote(id, key)
{
  client_print(0, print_chat, "Selection accepted!")
  return PLUGIN_HANDLED
}
0 does not close the menu or make a selection. Only MENU_KEY_1-9 work if I set MENU_KEY1-9 for both register_menuid and show_menu...

Edit: And 0 is bound to slot0.

Stu

Last edited by Afrow UK; 08-29-2007 at 10:30.
Afrow UK is offline
 



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:09.


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