AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   MSG_ONE or MSG_ONE_UNRELIABLE with no target entity (https://forums.alliedmods.net/showthread.php?t=217853)

alonelive 06-08-2013 11:21

MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
 
Hello.. I have an error.. Can you fix code?

PHP Code:

...
new 
menucount 5

...
public 
menu_show(idopponent)
{
    
menucount--

    new 
szName[32], szOppName[32];
    
get_user_name(idszNamesizeof szName 1);
    
get_user_name(opponentszOppNamesizeof szOppName 1);
    
    new 
szTitle[64];
    
    
formatex(szTitlesizeof szTitle 1"\r%s \yMENU (\r%d\y)!"szNamemenucount);
    
    
iMenu menu_create(szTitle"menu_MainHandler"0);

    
menu_additem(iMenu"123",    "1"0, -1);
    
menu_additem(iMenu"12345""2"0, -1);
    
    
menu_setprop(iMenuMPROP_EXITMEXIT_NEVER);
   
    
menu_display(opponentiMenu0);
    
    
set_task(1.0"fnChallenge"48875
    
    if(
menucount == 0)
    {
        
menucount //set initial value
        
client_print(0print_chat"debug - end"
        
remove_task(48875)
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_CONTINUE


error calling in menu_display(opponent, iMenu, 0);

hornet 06-08-2013 11:46

Re: MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
 
Provide your whole code.

AngeIII 06-08-2013 16:25

Re: MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
 
invalid set_task(1.0, "fnChallenge", 48875)

alonelive 06-08-2013 16:44

Re: MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
 
solved with AngeIII
Thank you!


All times are GMT -4. The time now is 16:27.

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