ze_register_item

Синтаксис

native ze_register_item(const szItemName[], iCost, iLimit);

Употреба

szItemName[]
Item name.
iCost
Item cost.
iLimit
Item limit.

Описание

Description:          Register extra-item in the items-menu.

Връщаща стойност

Item id in the menu, if successfully registered.
ZE_WRONG_ITEM | If item name was empty or item already registered.

Забележка

ZE_WRONG_ITEM is defined as -1
Limit must be >= 0, 0 means unlimited.
Use this native in plugin_init() forward.