This is the only way to know what the true value of item is
Code:
public shopmenu_handler( id, menu, item ) {
server_print("item == %d", item);
if( item == MENU_EXIT ) {
menu_destroy( menu );
return PLUGIN_HANDLED;
}
server_print("item was not MENU_EXIT");
new money = cs_get_user_money(id)
cs_set_user_money(id, money-str_to_num(g_Cost[item])) // <----- This Line
__________________