try fix Trade html window
This commit is contained in:
@@ -97,6 +97,7 @@ namespace ReallifeGamemode.Server.Managers
|
||||
TradeItems[user.Id] = (itemIdArr, itemAmountArr);
|
||||
TradeValue[user.Id] = value;
|
||||
target.SetData("tradePartner", user.Id);
|
||||
target.SetData("trade", user.LogUserId);
|
||||
SendTradeOffer(target,client);
|
||||
}
|
||||
|
||||
@@ -151,8 +152,8 @@ namespace ReallifeGamemode.Server.Managers
|
||||
[RemoteEvent("declineTrade")]
|
||||
public void ServerEvent_declineTrade(Client client)
|
||||
{
|
||||
int id = client.GetData("tradePartner");
|
||||
Client target = ClientService.GetClientByNameOrId(id.ToString());
|
||||
int id = client.GetData("trade");
|
||||
Client target = ClientService.GetClientByNameOrId(""+id);
|
||||
if (target == null || !target.IsLoggedIn())
|
||||
{
|
||||
ChatService.PlayerNotFound(client);
|
||||
|
||||
Reference in New Issue
Block a user