-- key call-back function -------------------------------
function LK_Callback(err,result)
if err then
if not (result == "That player already has that key.") then
LK_msg(LK_White,"Result: "..result)
end
end
end
This is how avoid getting all the messages "That player already has that key." when keys issues keys to everyone.
Not sure what you would use for the int amount in your function below.
PurchaseMerchandiseItem(int itemid, int amount, function callback) -> nil :: buy the provided item
http://www.vo-wiki.com/racecar/index.php?title=API_PurchaseMerchandiseItem