API PurchaseMerchandiseItem: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
split
 
Mick (talk | contribs)
callback
Line 1: Line 1:
=== PurchaseMerchandiseItem ===
=== PurchaseMerchandiseItem ===
'''Definition:'''
'''Definition:'''
PurchaseMerchandiseItem(int itemid, int amount) -> nil
PurchaseMerchandiseItem(int itemid, int amount, func callback) -> nil
<br>
<br>
'''Description:'''<br>
'''Description:'''<br>
Line 8: Line 8:
'''Arguments:'''<br>
'''Arguments:'''<br>
''itemid'' itemid of cargo merch item
''itemid'' itemid of cargo merch item
''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>

Revision as of 21:50, 16 February 2009

PurchaseMerchandiseItem

Definition: PurchaseMerchandiseItem(int itemid, int amount, func callback) -> nil
Description:
buy the provided item
Arguments:
itemid itemid of cargo merch item 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