rubene45
|
  |
| Joined: 08 May 2012 |
| Total Posts: 333 |
|
|
| 21 Jan 2017 12:46 PM |
So I have a shop that has 2 dev products in textbuttons, they have the same scripts but only one of these (10 Gems) works. Help!
Script 5 Gems:
local MarketplaceService = game:GetService("MarketplaceService") local ds = ga###################################################################local productId = 29974967 MarketplaceService.ProcessReceipt = function(receiptInfo) for i, player in ipairs(game.Players:GetChildren()) do if player.userId == receiptInfo.PlayerId then if receiptInfo.ProductId == productId then player.Gems.Value = player.Gems.Value + 5 print("Sucessfully 5 Gems!") end end end return Enum.ProductPurchaseDecision.PurchaseGranted end
localscript:
local buyButton = script.Parent local productId = 29974967 buyButton.MouseButton1Click:connect(function() game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, productId) end)
Script 10 Gems:
local MarketplaceService = game:GetService("MarketplaceService") local ds = ga###################################################################local productId = 29974976 MarketplaceService.ProcessReceipt = function(receiptInfo) for i, player in ipairs(game.Players:GetChildren()) do if player.userId == receiptInfo.PlayerId then if receiptInfo.ProductId == productId then player.Gems.Value = player.Gems.Value + 10 print("Sucessfully 10 Gems!") end end end return Enum.ProductPurchaseDecision.PurchaseGranted end
localscript:
local buyButton = script.Parent local productId = 29974976 buyButton.MouseButton1Click:connect(function() game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, productId) end) |
|
|
| Report Abuse |
|
|
rubene45
|
  |
| Joined: 08 May 2012 |
| Total Posts: 333 |
|
| |
|
rubene45
|
  |
| Joined: 08 May 2012 |
| Total Posts: 333 |
|
|
| 22 Jan 2017 05:42 AM |
| Bump 2 why nobody helps me |
|
|
| Report Abuse |
|
|
|
| 22 Jan 2017 05:48 AM |
| Maybe it's the giant block of hashes that obscure a chunk of your script which may contain the problem. |
|
|
| Report Abuse |
|
|
rubene45
|
  |
| Joined: 08 May 2012 |
| Total Posts: 333 |
|
|
| 22 Jan 2017 05:57 AM |
| I don't know why roblox censors script anyways here it is: ga################################################################### = ################################################################### |
|
|
| Report Abuse |
|
|
rubene45
|
  |
| Joined: 08 May 2012 |
| Total Posts: 333 |
|
|
| 22 Jan 2017 05:59 AM |
| game :GetService (" Data Store Service ") GetDataStore ("PurchaseHistory") |
|
|
| Report Abuse |
|
|
|
| 22 Jan 2017 07:32 AM |
hmmm...i wonder
MAYBE BECAUSE YOU DIDNT READ THE WIKI ARTICLES?
|
|
|
| Report Abuse |
|
|
rubene45
|
  |
| Joined: 08 May 2012 |
| Total Posts: 333 |
|
|
| 22 Jan 2017 07:56 AM |
| That is the same script as wiki's, read it before posting. |
|
|
| Report Abuse |
|
|
|
| 22 Jan 2017 07:57 AM |
"ARTICLES" "S"
read before posting.
|
|
|
| Report Abuse |
|
|
rubene455
|
  |
| Joined: 12 Jul 2013 |
| Total Posts: 13 |
|
|
| 22 Jan 2017 08:03 AM |
| Should I care? This is a forum to get helped, and you ain't helping me since I already tried the wiki method and didn't worked. |
|
|
| Report Abuse |
|
|
|
| 22 Jan 2017 08:06 AM |
a) "This is the place for discussion about scripting. Anything about scripting that is not a help request or topic belongs here."
"not a help request or topic"
b) you changed it, so its not the wiki's method anymore. if you had been bothered to search it up, there is an actual page about handling multiple dev products.
|
|
|
| Report Abuse |
|
|
rubene455
|
  |
| Joined: 12 Jul 2013 |
| Total Posts: 13 |
|
|
| 22 Jan 2017 08:10 AM |
| The method that uses the wiki DOESN'T work for multiple dev products. |
|
|
| Report Abuse |
|
|
|
| 22 Jan 2017 08:10 AM |
theres more the one method LOL
|
|
|
| Report Abuse |
|
|
rubene455
|
  |
| Joined: 12 Jul 2013 |
| Total Posts: 13 |
|
|
| 22 Jan 2017 08:13 AM |
| I'm searching in the developer product in the wiki, but I only find a method using data stores, I don't know where you found the other methods. |
|
|
| Report Abuse |
|
|
|
| 22 Jan 2017 09:41 AM |
http://wiki.roblox.com/index.php?title=Handling_multiple_developer_products fail
|
|
|
| Report Abuse |
|
|