flagflag  

Re: ObjectBuy

List posts in the topic

なし Re: ObjectBuy

msg# 1.1
depth:
1
Previous post - Next post | Parent - No child | Posted on 2013/4/20 22:40 | Last modified
iseki  Home away from home   Posts: 1581
Hi unethika,

Thank you for Japanese text. It is very intelligible.

When processing of an object is failed, system should be rollback. Was not rollback performed?
This is a very difficult problem.

Surely, in our code, after sending an object, money is transacted.

UUID receiverId = sceneObj.OwnerID;
if (mod.BuyObject(remoteClient, categoryID, localID, saleType, salePrice))                     // Object is transferred
{
    ulong regionHandle = sceneObj.RegionHandle;
    TransferMoney(remoteClient.AgentId, receiverId, salePrice,                                 // Pay Money
                (int)TransactionType.PayObject, sceneObj.UUID, regionHandle, "Object Buy");
}

It is possible that after money was transacted, sending an object.
In this case, it may be happen that user paid money but object is not sent.

Do you think which is better?
Votes:47 Average:4.47

Posts tree

  Advanced search


Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

45 user(s) are online (3 user(s) are browsing Forum)

Members: 0
Guests: 45

more...

Access Counter

Today : 2394239423942394
Yesterday : 8599859985998599
Total : 2364940023649400236494002364940023649400236494002364940023649400
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com