generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: MarketplaceService error

Previous Thread :: Next Thread 
Ekkoh is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image