Raised This Month: $ Target: $400
 0% 

argument type mismatch (argument 3)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 11-16-2010 , 10:19   argument type mismatch (argument 3)
Reply With Quote #1

Code:
//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// DeathrunVip.sma
// C:\Program Files\Valve\cstrike\addons\amxmodx\scripting\DeathrunVip.sma(203)
: error 035: argument type mismatch (argument 3)
// C:\Program Files\Valve\cstrike\addons\amxmodx\scripting\DeathrunVip.sma(204)
: error 035: argument type mismatch (argument 3)
// C:\Program Files\Valve\cstrike\addons\amxmodx\scripting\DeathrunVip.sma(205)
: error 035: argument type mismatch (argument 3)
// C:\Program Files\Valve\cstrike\addons\amxmodx\scripting\DeathrunVip.sma(206)
: error 035: argument type mismatch (argument 3)
// C:\Program Files\Valve\cstrike\addons\amxmodx\scripting\DeathrunVip.sma(207)
: error 035: argument type mismatch (argument 3)
// C:\Program Files\Valve\cstrike\addons\amxmodx\scripting\DeathrunVip.sma(208)
: error 035: argument type mismatch (argument 3)
// C:\Program Files\Valve\cstrike\addons\amxmodx\scripting\DeathrunVip.sma(209)
: error 035: argument type mismatch (argument 3)
// C:\Program Files\Valve\cstrike\addons\amxmodx\scripting\DeathrunVip.sma(210)
: error 035: argument type mismatch (argument 3)
// C:\Program Files\Valve\cstrike\addons\amxmodx\scripting\DeathrunVip.sma(211)
: error 035: argument type mismatch (argument 3)
// C:\Program Files\Valve\cstrike\addons\amxmodx\scripting\DeathrunVip.sma(212)
: error 035: argument type mismatch (argument 3)
//
// 10 Errors.
// Could not locate output file C:\Program Files\Valve\cstrike\addons\amxmodx\sc
ripting\compiled\DeathrunVip.amx (compile failed).
//
// Compilation Time: 0,31 sec
// ----------------------------------------

Press enter to exit ...
PHP Code:
public T_menu(id)
{
    if(!
is_user_alive(id))
       return 
PLUGIN_HANDLED

    client_cmd
(id"spk %s"MENU_POPUP)
        
        new 
gmenu menu_create("\y~::*V.I.P Menu*::~" "Vip_Handler");
        
menu_additem(gmenu ,"%L"LANG_SERVER ,"FIRST_MENU_SELECT_T" "1" 0);
        
menu_additem(gmenu ,"%L"LANG_SERVER ,"SECOND_MENU_SELECT_T" "2" 0);
        
menu_additem(gmenu ,"%L"LANG_SERVER ,"THIRD_MENU_SELECT_T" "3" 0);
        
menu_additem(gmenu ,"%L"LANG_SERVER ,"FOURTH_MENU_SELECT_T" "4" 0);
        
menu_additem(gmenu ,"%L"LANG_SERVER ,"FIFTH_MENU_SELECT_T" "5" 0);
        
menu_additem(gmenu ,"%L"LANG_SERVER ,"SIXTH_MENU_SELECT_T" "6" 0);
        
menu_additem(gmenu ,"%L"LANG_SERVER ,"SEVENTH_MENU_SELECT_T" "7" 0);
        
menu_additem(gmenu ,"%L"LANG_SERVER ,"EIGHTH_MENU_SELECT_T" "8" 0);
        
menu_additem(gmenu ,"%L"LANG_SERVER ,"NINETH_MENU_SELECT_T" "9" 0);
        
menu_additem(gmenu ,"%L"LANG_SERVER ,"TENTH_MENU_SELECT_T" "10" 0);
 
        
menu_setprop(gmenu MPROP_EXIT MEXIT_ALL);
 
        
menu_display(id gmenu 0);

    return 
PLUGIN_CONTINUE

DoviuX is offline
Send a message via Skype™ to DoviuX
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-16-2010 , 10:27   Re: argument type mismatch (argument 3)
Reply With Quote #2

menu_additem can't format. Use format[ex]() before.
__________________
Arkshine is offline
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 11-17-2010 , 10:09   Re: argument type mismatch (argument 3)
Reply With Quote #3

Before what ;D ?
DoviuX is offline
Send a message via Skype™ to DoviuX
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 11-17-2010 , 10:32   Re: argument type mismatch (argument 3)
Reply With Quote #4

Quote:
Originally Posted by DoviuX View Post
Before what ;D ?
Before getting hit by pain train.
__________________
xPaw is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 11-17-2010 , 10:35   Re: argument type mismatch (argument 3)
Reply With Quote #5

What they ment was this:

PHP Code:
new data[64];
formatex(datacharsmax(data), "\y~::*V.I.P Menu*::~");

new 
gmenu menu_create(data "Vip_Handler");

formatex(datacharsmax(data), "%L"LANG_SERVER"FIRST_MENU_SELECT_T");
menu_additem(gmenu data "1" 0);

// and so on. 
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-17-2010 , 14:11   Re: argument type mismatch (argument 3)
Reply With Quote #6

Quote:
Originally Posted by drekes View Post
PHP Code:
new data[64];
formatex(datacharsmax(data), "\y~::*V.I.P Menu*::~"); 
No point in using a variable. Just pass the string directly.
Also, if a variable was used, copy() should be used, not formatex().
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 11-17-2010 , 14:05   Re: argument type mismatch (argument 3)
Reply With Quote #7

Thanks drekes works perfectly.
DoviuX is offline
Send a message via Skype™ to DoviuX
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 11:14.


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