Raised This Month: $ Target: $400
 0% 

Problem, block after motd team select menu that appears and replace with


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CsIosefin
Senior Member
Join Date: Aug 2009
Old 08-11-2012 , 10:08   Problem, block after motd team select menu that appears and replace with
Reply With Quote #1

Hello AlliedModders, encounters a problem or I have no idea.
We select the team off after motd, and wish that after typing "ok" or "enter" to make a menu appear, but I give erroare, look the code:
Code:
register_message(get_user_msgid("VGUIMenu"), "cmdMOTD")
Code:
public cmdMOTD(id)
{
	return PLUGIN_HANDLED
}
OR:
Code:
public cmdMOTD(id)
{
	new menu = menu_create("MENU:", "cmdMENU")
	menu_additem(menu, "MENU", "1")
	menu_additem(menu, "MENU", "2")
	menu_setprop(menu, MPROP_PERPAGE, 0)
	menu_display(id, menu, 0)
	return PLUGIN_HANDLED
}
OR:
Code:
public cmdMOTD(id)
{
	set_task(10.0, "cmdMENU", id)
	return PLUGIN_HANDLED
}
It gives me the error: MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
CsIosefin 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:49.


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