alij12
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1204 |
|
|
| 05 Jan 2017 06:43 PM |
For some reason, I'm getting a couple complaints saying they're not getting their cash when they purchase it. I look through the console and it says they purchased it (it prints the [SALE]). Any ideas as to what could be the cause? Every time I test it, it works fine. I know theyre not lying since I witnessed them pay and not receive their cash.
local market = game:GetService("MarketplaceService") local shortHand = require(game.Workspace.ModuleScripts.Shorthand) local products = { id44016139 = 1000, id44016156 = 5000, id44016171 = 10###### id44016194 = #5###### id44016325 = 50000, id44016341 = 1000000 }
script.Parent.OnServerEvent:connect(function(plr,id) market:PromptProductPurchase(plr,id) print("Successfully found connection. Attempting to sell.") end)
market.ProcessReceipt = function(info) local player = info.PlayerId local product = info.ProductId print(player.." successfully triggered DevProduct.") for i,v in pairs(game.Players:GetPlayers()) do if v.UserId == player then print("[SALE] "..v.Name.." purchased $"..shortHand.commas(products["id"..product]).."!") v.ActualCash.Value = v.ActualCash.Value + products["id"..product] return Enum.ProductPurchaseDecision.PurchaseGranted end end end
Do not give up; the beginning is always the hardest part. |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2017 06:50 PM |
When you buy it while testing... Do you get your cash?
|
|
|
| Report Abuse |
|
|
alij12
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1204 |
|
|
| 05 Jan 2017 06:53 PM |
Yes.
Do not give up; the beginning is always the hardest part. |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2017 06:56 PM |
| Do a localserver test with 2 or more players. If you don't get your cash, search up threads with people that had the same issue. |
|
|
| Report Abuse |
|
|
alij12
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1204 |
|
|
| 05 Jan 2017 09:26 PM |
Well, Im testing in-game with well over 2 players.
Do not give up; the beginning is always the hardest part. |
|
|
| Report Abuse |
|
|