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: WTF DOES THIS ERROR EVEN MEAN.

Previous Thread :: Next Thread 
Sasayaki is not online. Sasayaki
Joined: 29 Jun 2007
Total Posts: 33868
16 Aug 2015 12:22 PM
10:19:29.170 - Value is not allowed
10:19:29.172 - Script 'ServerScriptService.EnterScript', Line 165
10:19:29.173 - Stack End

CORRESPONDING CODE:

total.Changed:connect(function()
ds3:UpdateAsync(plr.userId, function(old)
return total.Value
end)
if wins.Value >= 5 then
ds5:UpdateAsync(plr.userId, function(old) <---- LINE 165.
if total.Value == 0 then
return wins.Value*100000
else return math.floor(wins.Value/total.Value*10000+.5)/10000
end
end)
end
end)

IT MAKES NO SENSE BECAUSE ALMOST THE EXACT SAME CODE WORKS 3 LINES EARLIER.
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
16 Aug 2015 12:24 PM
I can assure that I have absolutely no idea.
Perhaps you should try SetAsync instead?



Hello World!
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
16 Aug 2015 12:25 PM
If you are not updating the value based on the old value, why are you even using UpdateAsync?
Report Abuse
Intern33t is not online. Intern33t
Joined: 19 Nov 2010
Total Posts: 1530
16 Aug 2015 12:29 PM
"Value is not allowed"

The value you are trying to set is obviously not allowed then.

If it's an allowed value, it might be out of bounds.

The maximum allowed characters is either 50, 64 or 65535 (am not sure right now).

In case "wins.Value*100000" or "math.floor(wins.Value/total.Value*10000+.5)/10000" are strings, you might be exceeding characters.

If you want them actually to be numbers, try "tonumber()".
Report Abuse
Sasayaki is not online. Sasayaki
Joined: 29 Jun 2007
Total Posts: 33868
16 Aug 2015 12:32 PM
They're numbers....
And they are in no way exceeding the max character limit considering I literally just made the code round off to 5 digits.
And I'll try SetAsync.
Report Abuse
TickerOfTime is not online. TickerOfTime
Joined: 02 Sep 2012
Total Posts: 2030
16 Aug 2015 12:52 PM
try tostring(plr.userId) as the key
Report Abuse
Sasayaki is not online. Sasayaki
Joined: 29 Jun 2007
Total Posts: 33868
16 Aug 2015 12:54 PM
resolved issue, it was that I needed to make them integers (ordereddatastore)
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