AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   shopmenu2 help for monkey mod by $il3nt_m0nk3y (https://forums.alliedmods.net/showthread.php?t=20589)

ermac 11-12-2005 04:50

shopmenu2 help for monkey mod by $il3nt_m0nk3y
 
/home/users/amxmodx/tmp3/phpWt4l7U.sma(25) : error 029: invalid expression, assumed zero

1 Error.
Could not locate output file /home/groups/amxmodx/public_html/websc3/phpWt4l7U.amx (compile failed).

heres the code how do i make it so when i quit shopmenu2 you see Monkey Mod apppear in the middle of the screen please help

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Monkey Mod"
#define VERSION "1.0"
#define AUTHOR "$il3nt_m0nk3y"
new mshopmenu2 // Menu
new mcbshopmenu2 // Menu Callback



public plugin_init() {
/* Menu shopmenu2 */
/* Use menu_display(id, mshopmenu2, 0) to show the menu to an user. */
mshopmenu2 = menu_create("shopmenu2", "mh_shopmenu2")
mcbshopmenu2 = menu_makecallback("mcb_shopmenu2")
menu_additem(mshopmenu2, "cloak of shadows", "ma_shopmenu2", ADMIN_ALL, mcbshopmenu2)
menu_additem(mshopmenu2, "amulet of the cat", "ma_shopmenu2", ADMIN_ALL, mcbshopmenu2)
menu_additem(mshopmenu2, "sock of feather", "ma_shopmenu2", ADMIN_ALL, mcbshopmenu2)
menu_additem(mshopmenu2, "glove of grenades", "ma_shopmenu2", ADMIN_ALL, mcbshopmenu2)
/* Menu End */

register_plugin(MONKEY MOD, 1.0, $il3nt_m0nk3y)

}


/* Menu shopmenu2 */

public mh_shopmenu2(id, menu, item) {
/* This event is called when someone presses a key on this menu */
}

public ma_shopmenu2(id) {
/* This event is called when an item was selected */
}

public mcb_shopmenu2(id, menu, item) {
/* This is the callback-event, here you can set items enabled or disabled. */
/* If you want to enable an item, use: return ITEM_ENABLED */
/* If you want to disable an item, use: return ITEM_DISABLED */
}

set_hudmessage(170, 255, 255, -1.0, -1.0, 0, 6.0, 12.0)
show_hudmessage(id, "Monkey Mod")

XxAvalanchexX 11-12-2005 12:12

You basically just asked how to code an entire WC3 style plugin.

ermac 11-12-2005 12:21

no i meen i just need help on understanding how to make them if you no what i meen


All times are GMT -4. The time now is 00:04.

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