cshop_item_selected

Called right before an item is purchased.

Syntax

forward cshop_item_selected(id, item) #define cshopItemBought cshop_item_selected /** * Called when an item is removed. * * @param id Player's index. * @param item Item ID. * @noreturn */ forward cshop_item_removed(id, item) #define cshopItemRemoved cshop_item_removed /** * Called right before the menu is opened. * * @param id Player's index. * @noreturn */ forward cshop_menu_opened(id, item) /** * Plays the error sound on a player. * * @param id Player's index. * @noreturn */ native cshop_error_sound(id) #define cshopErrorSound cshop_error_sound

Usage

id Player's index.
item Item ID.

Return

This function has no return value.

Defined in customshop.inc at line 111 . This documentation was automatically generated from source.