flagflag  If you want to see English page, please click "English" Button at Left.

Re: ObjectBuy

このトピックの投稿一覧へ

なし Re: ObjectBuy

msg# 1.1
depth:
1
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2013-4-20 22:40 | 最終変更
iseki  Home away from home   投稿数: 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?
投票数:47 平均点:4.47

投稿ツリー

  条件検索へ


サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月2024年 5月翌月
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
<今日>

オンライン状況

88 人のユーザが現在オンラインです。 (3 人のユーザが Forum を参照しています。)

登録ユーザ: 0
ゲスト: 88

もっと...

アクセスカウンタ

今日 : 5193519351935193
昨日 : 7722772277227722
総計 : 2343667423436674234366742343667423436674234366742343667423436674
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com