This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

MSG_ONE or MSG_ONE_UNRELIABLE with no target entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 06-08-2013 , 11:21   MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
Reply With Quote #1

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);
__________________
sorry my bad english...

Last edited by alonelive; 06-08-2013 at 11:22.
alonelive is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-08-2013 , 11:46   Re: MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
Reply With Quote #2

Provide your whole code.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
AngeIII
Senior Member
Join Date: Sep 2007
Location: Latvia
Old 06-08-2013 , 16:25   Re: MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
Reply With Quote #3

invalid set_task(1.0, "fnChallenge", 48875)
__________________
skype: pavle_ivanof
-=ThQ=-
PRIVATE SUPPORT = PAID SUPPORT
AngeIII is offline
Send a message via Skype™ to AngeIII
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 06-08-2013 , 16:44   Re: MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
Reply With Quote #4

solved with AngeIII
Thank you!
__________________
sorry my bad english...

Last edited by alonelive; 06-08-2013 at 16:45.
alonelive is offline
Reply



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 18:04.


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