Raised This Month: $ Target: $400
 0% 

compiling problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
tiktok51
Member
Join Date: Dec 2007
Old 12-19-2007 , 08:40   compiling problem
Reply With Quote #1

can some one plz compile this code because i cant compile it it gives me an error: number of arguments does not mach definition. so i need ur help here is the code:
Quote:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fun>

#define VERSION "1.0"

new const menu_names[][]=
{
"AWP",
"AK 47",
"M4 A1",
"The TMP !!"
}
new const menu_guns[][]=
{
"weapon_awp",
"weapon_ak47",
"weapon_m4a1",
"weapon_tmp"
}
public plugin_init()
{
register_plugin("Free Admin Guns", VERSION, "Pixie")
register_cvar("pixie","1.0",FCVAR_SERVER)
register_cvar("pixie_admin_guns_version",VERSION,FCVAR_SERVER)
register_clcmd("gunlist","admin_guns")
}
public admin_guns(id,level,cid)
{
new menu_id = menu_create("Guns Menu","on_choosegun") ;
for ( new i ; i < sizeof menu_names ; i ++ )
{
menu_additem(menu_id,menu_names[i])
}

menu_display(id,menu_id) ;

return PLUGIN_HANDLED_MAIN ;
}
public on_choosegun(id,menu_id,key)
{
if ( key != MENU_EXIT )
{
give_item(id,menu_guns[key])
}
menu_destroy(menu_id)
return PLUGIN_HANDLED ;
}
here is the .sma file:
Attached Files
File Type: sma Get Plugin or Get Source (admin_guns.sma - 565 views - 1.2 KB)
tiktok51 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 11:04.


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