|
| 10 Sep 2014 11:55 AM |
The problem is that it doesnt print anything, the promptpurchasefinished just doesnt get fired.
-- script: IdDev = 21157949
markSer = game:GetService("MarketplaceService")
game.Players.PlayerAdded:connect(function(plr) script.Parent.SurfaceGui.cr10.MouseButton1Click:connect(function() markSer:PromptProductPurchase(plr, IdDev) end) end)
markSer.PromptPurchaseFinished:connect(function(player, assetId, isPurchased) print(player.Name.." finished promptpurchase: " ..assetId.." ".. isPurchased) if isPurchased == true then if assetId == IdDev then plr.leaderstats.Credits.Value = plr.leaderstats.Credits.Value + 10 end end end) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 10 Sep 2014 01:24 PM |
try using processreceipt instead and in a server script also you need to Grant something to make it work i believe |
|
|
| Report Abuse |
|
|
| |
|