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: exceeding GetAsync in a loop

Previous Thread :: Next Thread 
Intern33t is not online. Intern33t
Joined: 19 Nov 2010
Total Posts: 1530
18 Apr 2015 12:27 PM
inside a while wait() do end loop:


if req.Value ~= DataStore:GetAsync("user_" .. v.userId) then DataStore:UpdateAsync("user_" .. v.userId, function(oval) return req.Value end)end



after some time, the console says it exeeds the maximum amount of getasyncs.
what can i do to keep it running?
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
18 Apr 2015 12:31 PM
You can't; use a PlayerAdded and PlayerRemoving saving system
Report Abuse
Intern33t is not online. Intern33t
Joined: 19 Nov 2010
Total Posts: 1530
18 Apr 2015 12:42 PM
yeah, great explanaition

what you siad is completley out of context and you didnt explain why
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
18 Apr 2015 12:46 PM
Actually no, I'm completely in context here.

There is a limit to GetAsync, you can call it every 1/30 seconds, it's just illogical! You should load values on PlayerAdded, and save them on PlayerRemoved.
Report Abuse
Intern33t is not online. Intern33t
Joined: 19 Nov 2010
Total Posts: 1530
18 Apr 2015 12:49 PM
i am using a playeradded system

on player added
check every player's private var
if not identical with async, change async
if requestedValue is not the same as private var
change private var to requestedValue
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
18 Apr 2015 12:53 PM
So why is there a loop?
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