Raised This Month: $ Target: $400
 0% 

error 035: argument type mismatch (argument 2)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 09-21-2020 , 12:38   Re: error 035: argument type mismatch (argument 2)
Reply With Quote #6

You're missing an argument. The error is from passing an integer into something that expects a string.

I would assume an error about the number of arguments but the code is probably processed from left to right and the first error that the compiler encounters is what it prints before halting the compilation process.

Code:
/* Registers extra items on this plugin for VIPs (Only if MODE 2 is active) * *  @param name           Extra item name. *  @param discription    Extra item discription (simmilar like zombie class discription). *  @param cost           How much ammo packs will cost this item for player. *  @param team           Teams allowed to buy this item. (0 for all teams) *  @return               Extra item id. */ native zv_register_extra_item(const name[], const discription[], cost, team)

Code:
gl_iItemID = zv_register_extra_item(WEAPON_ITEM_NAME, WEAPON_ITEM_COST, ZV_TEAM_HUMAN);
->
Code:
gl_iItemID = zv_register_extra_item(WEAPON_ITEM_NAME, "Add a very fancy description here...", WEAPON_ITEM_COST, ZV_TEAM_HUMAN);
__________________

Last edited by Black Rose; 09-21-2020 at 12:41.
Black Rose is offline
 



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 13:53.


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