Raised This Month: $ Target: $400
 0% 

VGUI problem...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
black-eye
Junior Member
Join Date: May 2006
Old 05-11-2006 , 15:12   VGUI problem...
Reply With Quote #1

Hello...

I have a little problem with getting select team to work i VGUI menu...

I use this code:
Code:
register_menucmd(-2,(1<<0)|(1<<1),"team_select")   // VGUI menu
It was one i found in here, but i cant get it to work...

Any one who can tell me how to get it to work correct?
black-eye is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-11-2006 , 15:14  
Reply With Quote #2

  • 1. Use [small] tags.
    2. Post the full code that you're using.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
black-eye
Junior Member
Join Date: May 2006
Old 05-11-2006 , 15:28  
Reply With Quote #3

Code:
#include <amxmodx>
public plugin_init()
{
register_menucmd(-2,(1<<0)|(1<<1),"team_select")   // VGUI menu  
}


public team_select(id, key)
{
client_print(0, print_chat, "team_select: %s, %f, %i, %d ", key, key, key, key) 
}
I this what you want?
black-eye is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-11-2006 , 16:04  
Reply With Quote #4

He still wants it in small tags like this:

Code:
#include <amxmodx> public plugin_init() { register_menucmd(-2,(1<<0)|(1<<1),"team_select")   // VGUI menu } public team_select(id, key) { client_print(0, print_chat, "team_select: %s, %f, %i, %d ", key, key, key, key) }
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 05-11-2006 , 16:24  
Reply With Quote #5

try printing it to console?
i think chat messages are ignored if u have a window open (motd.. vgui menu?), just a thought
__________________
plop
p3tsin is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-11-2006 , 18:44  
Reply With Quote #6

By the way, the key is going to be an integer. So use either %d or %i, not the other ones.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
black-eye
Junior Member
Join Date: May 2006
Old 05-12-2006 , 04:18  
Reply With Quote #7

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "New Plugin" #define VERSION "1.0" #define AUTHOR "Author" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_menucmd(-2,1023,"team_select")   // VGUI menu } public team_select(id, key) {     server_print("team_select: %i, %d ", key, key) }
Hmmm i still dont get anything...
black-eye is offline
Reply


Thread Tools
Display Modes

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 05:08.


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