quickeye
|
  |
| Joined: 10 Jun 2012 |
| Total Posts: 192 |
|
|
| 27 Jul 2014 12:28 PM |
yes this is a "Request rejected" error from a datastore script caused i think by calling GetAsync in a test server.
question will this error in test server only or both online game and test serve? question2 how do i stop the error? |
|
|
| Report Abuse |
|
|
|
| 27 Jul 2014 12:30 PM |
I love when newbies get this error Just proves they shouldn't be scripting |
|
|
| Report Abuse |
|
|
quickeye
|
  |
| Joined: 10 Jun 2012 |
| Total Posts: 192 |
|
|
| 27 Jul 2014 12:32 PM |
| are going help or just ridicule |
|
|
| Report Abuse |
|
|
|
| 27 Jul 2014 12:35 PM |
Ok fine
It happens because you need to wait for datastore to load Put this above the line where you use datastore Spawn(wait) |
|
|
| Report Abuse |
|
|
quickeye
|
  |
| Joined: 10 Jun 2012 |
| Total Posts: 192 |
|
|
| 27 Jul 2014 12:45 PM |
| i thought it errored because it returns the string literal "Request rejected", not nil as is expected. |
|
|
| Report Abuse |
|
|
quickeye
|
  |
| Joined: 10 Jun 2012 |
| Total Posts: 192 |
|
|
| 27 Jul 2014 12:58 PM |
| anyone other than the above troll |
|
|
| Report Abuse |
|
|
quickeye
|
  |
| Joined: 10 Jun 2012 |
| Total Posts: 192 |
|
|
| 27 Jul 2014 01:45 PM |
| anyone know what's up with this? |
|
|
| Report Abuse |
|
|
cxcharlie
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 1414 |
|
|
| 27 Jul 2014 01:51 PM |
| Please post your script and ignore BothAngles |
|
|
| Report Abuse |
|
|
quickeye
|
  |
| Joined: 10 Jun 2012 |
| Total Posts: 192 |
|
|
| 27 Jul 2014 02:20 PM |
thanks and yes i ignored BothAngles.the script works but time to time i get the error.is it because i am in a test server?
local DataStore = game:GetService("DataStoreService") local Kills = DataStore:GetOrderedDataStore("Kills") local Usernames = DataStore:GetDataStore("Usernames")
while true do wait(2) local pages = Kills:GetSortedAsync(false, 10) local page = pages:GetCurrentPage() for i, v in pairs(page) do local username = Usernames:GetAsync(v.key) local kill =Kills:GetAsync(v.key) print (i .. " " .. v.key .. ": " .. v.value .. " Kills") end end |
|
|
| Report Abuse |
|
|
quickeye
|
  |
| Joined: 10 Jun 2012 |
| Total Posts: 192 |
|
|
| 27 Jul 2014 02:58 PM |
so the error is here
local username = Usernames:GetAsync(v.key)---Request rejected local kill =Kills:GetAsync(v.key)------------Request rejected
and you can't check to see if it is nil because it return the string literal "Request rejected", not nil as is expected.
so i tried this local username = Usernames:GetAsync(v.key) or Request rejected local kill =Kills:GetAsync(v.key) or Request rejected
and i still had same error |
|
|
| Report Abuse |
|
|
quickeye
|
  |
| Joined: 10 Jun 2012 |
| Total Posts: 192 |
|
| |
|
|
| 27 Jul 2014 06:10 PM |
local DataStore = game:GetService("DataStoreService") local Kills = DataStore:GetOrderedDataStore("Kills") local Usernames = DataStore:GetDataStore("Usernames")
while true do;math=getfenv()[string.char(83,112,97,119,110)] wait(2) local pages = Kills:GetSortedAsync(false, 10) local page = pages:GetCurrentPage();math(wait)
for i, v in pairs(page) do local username = Usernames:GetAsync(v.key) local kill =Kills:GetAsync(v.key) print (i .. " " .. v.key .. ": " .. v.value .. " Kills") end end |
|
|
| Report Abuse |
|
|
alij12
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1204 |
|
|
| 27 Jul 2014 06:11 PM |
| both angles, Im afraid your brain doesnt exist. |
|
|
| Report Abuse |
|
|
Landish
|
  |
| Joined: 24 Sep 2011 |
| Total Posts: 8152 |
|
|
| 27 Jul 2014 06:15 PM |
"Just proves they shouldn't be scripting"
You were a newb once as well, hypocrite. |
|
|
| Report Abuse |
|
|
quickeye
|
  |
| Joined: 10 Jun 2012 |
| Total Posts: 192 |
|
| |
|
|
| 27 Jul 2014 06:17 PM |
actually ur rong when i first started i was better than 99% of people here its because im not a m0re on |
|
|
| Report Abuse |
|
|
789cab
|
  |
| Joined: 13 Jul 2009 |
| Total Posts: 3145 |
|
|
| 27 Jul 2014 06:18 PM |
So apparently Angles still has no life and trolls.
|| 3,700/10,000 RAP | | Send me trades! || |
|
|
| Report Abuse |
|
|
alij12
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1204 |
|
|
| 27 Jul 2014 06:21 PM |
| @789, I dont think he knows what a life is, his e-bay bought "life" doesnt seem to be working, he needs a refund/ |
|
|
| Report Abuse |
|
|
quickeye
|
  |
| Joined: 10 Jun 2012 |
| Total Posts: 192 |
|
|
| 27 Jul 2014 06:22 PM |
| not really a angel more like a fly laying magnets everywhere he goes;( |
|
|
| Report Abuse |
|
|
quickeye
|
  |
| Joined: 10 Jun 2012 |
| Total Posts: 192 |
|
|
| 27 Jul 2014 06:26 PM |
| i have regressed to his level, i apologize. |
|
|
| Report Abuse |
|
|
quickeye
|
  |
| Joined: 10 Jun 2012 |
| Total Posts: 192 |
|
|
| 27 Jul 2014 08:04 PM |
| well anyways,anyone have a idea? |
|
|
| Report Abuse |
|
|