API PurchaseMerchandiseItem: Difference between revisions
From Vendetta Lua
Jump to navigationJump to search
callback |
No edit summary |
||
Line 7: | Line 7: | ||
<br> | <br> | ||
'''Arguments:'''<br> | '''Arguments:'''<br> | ||
''itemid'' itemid of cargo merch item | ''itemid'' itemid of cargo merch item<br> | ||
''amount'' number of items to purchase<br> | |||
''callback'' function that gets called when transaction is finished, callback is called with no arguments in case of success or with numeric errorcode in case of failure | ''callback'' function that gets called when transaction is finished, callback is called with no arguments in case of success or with numeric errorcode in case of failure | ||
<br> | <br> |
Latest revision as of 04:52, 17 February 2009
PurchaseMerchandiseItem
Definition:
PurchaseMerchandiseItem(int itemid, int amount, func callback) -> nil
Description:
buy the provided item
Arguments:
itemid itemid of cargo merch item
amount number of items to purchase
callback function that gets called when transaction is finished, callback is called with no arguments in case of success or with numeric errorcode in case of failure