|
| 02 Feb 2015 01:33 PM |
I PROMISE to give my Classic fedora to whoever solves my problem. Do NOT Attempt to copy-paste wiki stuff, ive been digging for 2 days. Dont be an idiot, im offering 60$worth in limited items.
I need a way to detect when a player has clicked "Cancel" on a Product purchase.
Basicaly, when i prompt a Product Purchase, i will Disable all my GUIs so they cant prompt multiple purchases or anything, Im able to detect once a player has Purchased it so that i can re-enable my GUIs. However, If player clicks cancel, the GUIs are disabled and the player is stuck.
I NEED to detect cancel, Like be able to do Print("Player has canceled purchase")
I do NOT want any method of going around this. I dont care its a "hacky" way of detecting it, i just want to detect it. |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2015 01:36 PM |
okay, i'm a new scripter and all, but maybe i can look through the script for any error.
can you paste it here? |
|
|
| Report Abuse |
|
|
SLY3
|
  |
| Joined: 10 Jul 2008 |
| Total Posts: 1700 |
|
|
| 02 Feb 2015 02:05 PM |
How about this:
-- local market = game:GetService'MarketplaceService' local AssetID = 1337 local detect_Cancel = function(player,ID)local x = false market:PromptPurchase(player,ID) if market:PlayerOwnsAsset(player,ID) == false then x = true end return x end print('Cancelled: ' .. tostring(detect_Cancel)) -- |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2015 02:13 PM |
Solved, thanks for trying:P
|
|
|
| Report Abuse |
|
|
|
| 02 Feb 2015 02:16 PM |
| You should share your solution so if anybody else comes across this thread they can find a solution. |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2015 02:54 PM |
@SLY3
Without reading your code is that a valid solution? |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2015 05:04 PM |
@Tris i plan to make my game open source after im done with all of it, ill post the answer then. Some other people probably have it.
I paid dearly for it, and nobody even cared to look at my thread until i offered all i had. So ill profit out of it first. (Since its money related i dont want other big devs milking every players out of their money before i even get there.) |
|
|
| Report Abuse |
|
|