Raised This Month: $ Target: $400
 0% 

Number Of Arguments - Help..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Alfanan123
Junior Member
Join Date: Sep 2011
Old 09-14-2013 , 08:48   Number Of Arguments - Help..
Reply With Quote #1

Ive been working on a menu and it worked fine b4, but now i just get the damn Number Of Arguments does not match error definition, after i added a transfer menu.

1:
Code:
public cmdAdminMenu(iPlayer)
{
if(!(get_user_flags(iPlayer) & ADMIN_IMMUNITY)) //Flag: A
{
ChatColor(iPlayer, "!g[%s]!y You don't got access to this command.", TAG);
return PLUGIN_HANDLED;
}

new szText[555 char];
formatex(szText, charsmax(szText), "\yAdmin Menu")
new AdminMenu = menu_create(szText, "AdminMenuHandle")

formatex(szText, charsmax(szText), "\yTransfer Menu")
menu_additem(AdminMenu, szText, "1", 0)

menu_setprop(AdminMenu, MPROP_EXIT, MEXIT_ALL)
menu_display(iPlayer, AdminMenu, 0)

return PLUGIN_HANDLED;
}
2:
Code:
public AdminMenuHandle(id, menu, item)
{ 
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED;
}

new data[6], iName[64], access, callback
menu_item_getinfo(menu, item, access, data, charsmax(data), iName, charsmax(iName), callback )
new key = str_to_num(data)

switch(key)
{ 
case 1: TransferMenu(id) //Here's the error
}

return PLUGIN_HANDLED;
}
Tell me if you see something wrong.. :/

Last edited by YamiKaitou; 09-14-2013 at 18:02.
Alfanan123 is offline
 


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 19:06.


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