AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Problem, block after motd team select menu that appears and replace with (https://forums.alliedmods.net/showthread.php?t=192543)

CsIosefin 08-11-2012 10:08

Problem, block after motd team select menu that appears and replace with
 
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


All times are GMT -4. The time now is 05:49.

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