Ekkoh
|
  |
| Joined: 22 Oct 2012 |
| Total Posts: 524 |
|
|
| 05 Feb 2014 08:25 PM |
I have a function that stores an asset in a table and returns it... It's a ModuleScript if that makes any difference
GamePass.new = function(id) local gp = Game:GetService("MarketplaceService"):GetProductInfo(id) if gp then GamePass.Passes[gp.Name] = gp return GamePass.Passes[gp.Name] else return nil end end
and I get this error every time I run it on a server, not in play solo.
MarketplaceService:GetProductInfo() productInfoUrl is empty
I have no idea what this means, I'm supplying it with a valid ID. I tried it in the command line and it worked fine.
"We can walk a million miles, and end up in the sea." - George Ragan aka Johnny 3 Tears |
|
|
| Report Abuse |
|
|
Ekkoh
|
  |
| Joined: 22 Oct 2012 |
| Total Posts: 524 |
|
|
| 05 Feb 2014 08:42 PM |
Bump
"We can walk a million miles, and end up in the sea." - George Ragan aka Johnny 3 Tears |
|
|
| Report Abuse |
|
|
Ekkoh
|
  |
| Joined: 22 Oct 2012 |
| Total Posts: 524 |
|
|
| 05 Feb 2014 09:32 PM |
Bump 2 :/
"We can walk a million miles, and end up in the sea." - George Ragan aka Johnny 3 Tears |
|
|
| Report Abuse |
|
|
Ekkoh
|
  |
| Joined: 22 Oct 2012 |
| Total Posts: 524 |
|
|
| 05 Feb 2014 10:18 PM |
Anyone?
"We can walk a million miles, and end up in the sea." - George Ragan aka Johnny 3 Tears |
|
|
| Report Abuse |
|
|
McGunz
|
  |
| Joined: 26 Dec 2011 |
| Total Posts: 759 |
|
|
| 05 Feb 2014 11:43 PM |
| What are you trying to make it do |
|
|
| Report Abuse |
|
|
iYoshiFox
|
  |
| Joined: 14 Apr 2012 |
| Total Posts: 1058 |
|
|
| 06 Feb 2014 01:07 AM |
:GetProductInfo returns a table. If your trying to get a single thing like Description... Do this:
for i, v in pairs(game:GetService("MarketplaceService"):GetProductInfo(id)) if i == "Description" then --Da description end end |
|
|
| Report Abuse |
|
|
iYoshiFox
|
  |
| Joined: 14 Apr 2012 |
| Total Posts: 1058 |
|
|
| 06 Feb 2014 01:07 AM |
| Oh yeah.. and v is the actuall value.. |
|
|
| Report Abuse |
|
|
Ekkoh
|
  |
| Joined: 22 Oct 2012 |
| Total Posts: 524 |
|
|
| 06 Feb 2014 08:32 PM |
@iYoshi I'm well aware of that, but that's not my problem.
@McGunz All I'm doing is storing the table it returns in one of my tables. The part that throws the error is the GetProductInfo method of MarketplaceService.
"We can walk a million miles, and end up in the sea." - George Ragan aka Johnny 3 Tears |
|
|
| Report Abuse |
|
|
Ekkoh
|
  |
| Joined: 22 Oct 2012 |
| Total Posts: 524 |
|
|
| 07 Feb 2014 04:09 PM |
Bump
"We can walk a million miles, and end up in the sea." - George Ragan aka Johnny 3 Tears |
|
|
| Report Abuse |
|
|
Ekkoh
|
  |
| Joined: 22 Oct 2012 |
| Total Posts: 524 |
|
|
| 07 Feb 2014 07:10 PM |
Bump
"We can walk a million miles, and end up in the sea." - George Ragan aka Johnny 3 Tears |
|
|
| Report Abuse |
|
|