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 » Scripters
Home Search
 

Re: Mobile ads problem.

Previous Thread :: Next Thread 
isc88 is not online. isc88
Joined: 30 May 2013
Total Posts: 27545
04 Nov 2015 09:47 PM
In a localscript in a textbutton:

wait(5)

function LongToShort(num,places)
local placeValue = ("%%.%df"):format(places or 0)
local syntax = {"K", "M", "B", "T", "q", "Q", "s", "S", "O", "N", "d", "U", "D", "!", "@", "#", "$", "%", "^", "&", "*"}
for i = #syntax,1,-1 do
if num >= math.floor(tonumber("1e+" .. i*3)) then
return placeValue:format(num / math.floor(tonumber("1e+" .. i*3))) .. syntax[i]
end
end
return num
end

script.Parent.MouseButton1Down:connect(function()

game:GetService("AdService"):ShowVideoAd()

game:GetService("AdService").VideoAdClosed:connect(function(shown)
if shown then
print("Finished showing video ad.")
script.Parent.Parent.sucMsg.Visible = true
gold = script.Parent.Parent.Parent.Parent.Gold.Value
goldnew = LongToShort(gold/2)
script.Parent.Parent.sucMsg.Text = "You earned "..goldnew.." from watching the video ad!"
script.Parent.Parent.Parent.Parent.Gold.Value = script.Parent.Parent.Parent.Parent.Gold.Value + goldnew
script.Parent.Visible = false
wait(8)
script.Parent.Visible = true
script.Parent.Parent.sucMsg.Visible = false
else
print("The ad didn't get shown.")
script.Parent.Parent.errMsg.Visible = true
script.Parent.Parent.errMsg2.Visible = true
script.Parent.Visible = false
wait(8)
script.Parent.Parent.errMsg.Visible = false
script.Parent.Parent.errMsg2.Visible = false
script.Parent.Visible = true
end
end)

end)


When you click the button it's supposed to display a video ad, and if it shows it gives you money.

But when you click it it just shows the error message.

I tested on Mobile (as well as pc)



http://www.roblox.com/siggy1-item?id=305572682http://www.roblox.com/siggy2-item?id=305572728http://www.roblox.com/siggy3-item?id=305572809
Report Abuse
Darkenus is not online. Darkenus
Joined: 17 Jul 2014
Total Posts: 1997
04 Nov 2015 09:50 PM
Did you test on your account? Won't show for BC people.
Report Abuse
isc88 is not online. isc88
Joined: 30 May 2013
Total Posts: 27545
04 Nov 2015 09:53 PM
@dark

made a new account

nbc

over 13



http://www.roblox.com/siggy1-item?id=305572682http://www.roblox.com/siggy2-item?id=305572728http://www.roblox.com/siggy3-item?id=305572809
Report Abuse
isc88 is not online. isc88
Joined: 30 May 2013
Total Posts: 27545
04 Nov 2015 10:01 PM
:/



http://www.roblox.com/siggy1-item?id=305572682http://www.roblox.com/siggy2-item?id=305572728http://www.roblox.com/siggy3-item?id=305572809
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
04 Nov 2015 10:30 PM
ay where did you find that function to convert long to short?
Report Abuse
isc88 is not online. isc88
Joined: 30 May 2013
Total Posts: 27545
04 Nov 2015 10:40 PM
@Legend


a guy on the scripters forum
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
04 Nov 2015 10:45 PM
Oh, I was wondering since I made that function awhile ago with the same code. :p
Report Abuse
isc88 is not online. isc88
Joined: 30 May 2013
Total Posts: 27545
04 Nov 2015 10:46 PM
then it was probably you :P
Report Abuse
isc88 is not online. isc88
Joined: 30 May 2013
Total Posts: 27545
04 Nov 2015 10:50 PM
bump
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
04 Nov 2015 10:52 PM
"But when you click it it just shows the error message."

whats the error?
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
04 Nov 2015 10:55 PM
you can also see the dev console in mobile if you type 'console' in chat
Report Abuse
isc88 is not online. isc88
Joined: 30 May 2013
Total Posts: 27545
05 Nov 2015 12:32 PM
anyone?



http://www.roblox.com/siggy1-item?id=305572682http://www.roblox.com/siggy2-item?id=305572728http://www.roblox.com/siggy3-item?id=305572809
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
05 Nov 2015 12:38 PM
What's the error?
Report Abuse
isc88 is not online. isc88
Joined: 30 May 2013
Total Posts: 27545
05 Nov 2015 01:15 PM
In console it says the ad got shown, no error.

but it doesn't do the rest of the stuff OR show an ad.



http://www.roblox.com/siggy1-item?id=305572682http://www.roblox.com/siggy2-item?id=305572728http://www.roblox.com/siggy3-item?id=305572809
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
05 Nov 2015 01:41 PM
I think ROBLOX keeps a record of all your accounts registers on your IP or computer, so you can't cheat your way into getting free robux.

Try asking some of your friends.

Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784
Report Abuse
isc88 is not online. isc88
Joined: 30 May 2013
Total Posts: 27545
05 Nov 2015 02:13 PM
@power
really?

ok



http://www.roblox.com/siggy1-item?id=305572682http://www.roblox.com/siggy2-item?id=305572728http://www.roblox.com/siggy3-item?id=305572809
Report Abuse
isc88 is not online. isc88
Joined: 30 May 2013
Total Posts: 27545
05 Nov 2015 02:18 PM
e.e



http://www.roblox.com/siggy1-item?id=305572682http://www.roblox.com/siggy2-item?id=305572728http://www.roblox.com/siggy3-item?id=305572809
Report Abuse
isc88 is not online. isc88
Joined: 30 May 2013
Total Posts: 27545
05 Nov 2015 02:34 PM
i don't really have any friends to test it

:(



http://www.roblox.com/siggy1-item?id=305572682http://www.roblox.com/siggy2-item?id=305572728http://www.roblox.com/siggy3-item?id=305572809
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
05 Nov 2015 03:02 PM
^wow.
Report Abuse
isc88 is not online. isc88
Joined: 30 May 2013
Total Posts: 27545
05 Nov 2015 03:03 PM
*friends with phones that play roblox



http://www.roblox.com/siggy1-item?id=305572682http://www.roblox.com/siggy2-item?id=305572728http://www.roblox.com/siggy3-item?id=305572809
Report Abuse
Darkenus is not online. Darkenus
Joined: 17 Jul 2014
Total Posts: 1997
07 Nov 2015 02:49 PM
Maybe give us your game link so we can test. As some of us DO have phones.
Report Abuse
TheComputerist is not online. TheComputerist
Joined: 28 Oct 2011
Total Posts: 695
07 Nov 2015 02:51 PM
I've tried this before. The accounts on your IP won't work.

"Lua is coding. Lua is life" - TheComputerist
Report Abuse
isc88 is not online. isc88
Joined: 30 May 2013
Total Posts: 27545
07 Nov 2015 03:12 PM
here is link: http://www.roblox.com/games/291095712/Clicker-Adventures-MOBILE-UPDATES



hello stal477. when i grow up i want to be a hat designer, and i spent hours making thoose hats i posted in my decals. the red grinded hat means a lot to me and stop bullying me because its not fun ok stop. how does it feel to get bullied now? - isc88
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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