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 |
|
|
|
| 18 Apr 2015 12:31 PM |
| You can't; use a PlayerAdded and PlayerRemoving saving system |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
| |
|