This is my first time ;)
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Nowy Plugin"
#define VERSION "1.0"
#define AUTHOR "JahMan"
new const sounds[][] = {
"sound/misc/OE/oe_01.mp3",
"sound/misc/OE/oe_02.mp3",
"sound/misc/OE/oe_03.mp3",
"sound/misc/OE/oe_04.mp3",
"sound/misc/OE/oe_05.mp3",
"sound/misc/OE/oe_06.mp3",
"sound/misc/OE/oe_07.mp3",
"sound/misc/OE/oe_08.mp3",
"sound/misc/OE/oe_09.mp3",
"sound/misc/OE/oe_10.mp3",
"sound/misc/OE/oe_11.mp3",
"sound/misc/OE/oe_12.mp3",
"sound/misc/OE/oe_13.mp3",
"sound/misc/OE/oe_14.mp3",
"sound/misc/OE/oe_15.mp3",
"sound/misc/OE/oe_16.mp3",
"sound/misc/OE/oe_17.mp3",
"sound/misc/OE/oe_18.mp3",
"sound/misc/OE/oe_19.mp3",
"sound/misc/OE/oe_20.mp3"}
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("amx_menu", "menu")
}
public menu(id)
{
new menu = menu_create("rMenu muzyki!:", "wybieranie")
menu_additem(menu, "\wops", "3", ADMIN_KICK)
menu_additem(menu, "\wops", "3", ADMIN_KICK)
menu_additem(menu, "\wops", "3", ADMIN_KICK)
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu, 0)
}
public wybieranie(id, menu, item)
{
if (item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6], iName[64]
new acces, callback
menu_item_getinfo(menu, item, acces, data,5, iName, 63, callback)
new key = str_to_num(data)
switch(key)
{
case 1:
{
client_cmd(0, "mp3 play sound/misc/OE/oe_13.mp3")
return PLUGIN_CONTINUE
}
case 2:
{
client_cmd(0, "mp3 play sound/misc/OE/oe_13.mp3")
return PLUGIN_CONTINUE
}
case 3:
{
client_cmd(0, "mp3 play sound/misc/OE/oe_13.mp3")
return PLUGIN_CONTINUE
}
}
public plugin_precache()
new i
for(i = 0; i < sizeof sounds; i++)
precache_generic(sounds[i])
what is wrong with
plugin_precache()
I have 3 Errors/home/groups/amxmodx/tmp3/textPBSxON.sma(70) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/textPBSxON.sma(82) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/textPBSxON.sma(85) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/textPBSxON.sma(85) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/textPBSxON.sma(85) : error 004: function "plugin_precache" is not implemented
/home/groups/amxmodx/tmp3/textPBSxON.sma(87) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/textPBSxON.sma(89) : error 001: expected token: "}", but found "-end of file-"