Oto logi:
Start of error session. L 12/28/2010 - 17:23:54: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20101228.log") L 12/28/2010 - 17:23:54: Played 1 is not in game L 12/28/2010 - 17:23:54: [AMXX] Displaying debug trace (plugin "vote_bh.amxx") L 12/28/2010 - 17:23:54: [AMXX] Run time error 10: native error (native "menu_cancel") L 12/28/2010 - 17:23:54: [AMXX] [0] textV5r033.sma::menu_handler (line 52)
linia 52:
menu_cancel(id)
Cała funkcja:
public menu_handler(id, menu, item)
{
if (item == MENU_EXIT)
{
menu_cancel(id)
return PLUGIN_HANDLED
}
new data[3], name[32]
new access, callback
menu_item_getinfo(menu, item, access, data, 2, _, _, callback)
new key = str_to_num(data)
get_user_name(id, name, 31)
switch (key)
{
case 1:
{
client_print (0, print_chat, "[csns.pl] %s zaglosowal na NIE", name);
}
case 2:
{
client_print (0, print_chat, "[csns.pl] %s zaglosowal na TAK", name)
}
}
++choises[key]
menu_cancel(id)
return PLUGIN_HANDLED
}
Całe sma:
vote_bh.sma 2,89 KB 42 Ilość pobrań
vote_bh.amxx
Liczę na waszą pomoc


Dodatki SourceMod



Temat jest zamknięty








