Raised This Month: $ Target: $400
 0% 

compiling problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 12-20-2007 , 07:05   Re: compiling problem
Reply With Quote #4

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",VERS ION,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,0) ;
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 ;
}
line 37 should contain

Quote:
menu_display(id,menu_id,0) ;
0 = page
TheRadiance is offline
Send a message via ICQ to TheRadiance
 



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