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 » Scripting Helpers
Home Search
 

Re: "Request rejected"

Previous Thread :: Next Thread 
quickeye is not online. 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
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
27 Jul 2014 12:30 PM
I love when newbies get this error
Just proves they shouldn't be scripting
Report Abuse
quickeye is not online. quickeye
Joined: 10 Jun 2012
Total Posts: 192
27 Jul 2014 12:32 PM
are going help or just ridicule
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
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 is not online. 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 is not online. quickeye
Joined: 10 Jun 2012
Total Posts: 192
27 Jul 2014 12:58 PM
anyone other than the above troll
Report Abuse
quickeye is not online. quickeye
Joined: 10 Jun 2012
Total Posts: 192
27 Jul 2014 01:45 PM
anyone know what's up with this?
Report Abuse
cxcharlie is not online. cxcharlie
Joined: 26 Aug 2009
Total Posts: 1414
27 Jul 2014 01:51 PM
Please post your script and ignore BothAngles
Report Abuse
quickeye is not online. 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 is not online. 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 is not online. quickeye
Joined: 10 Jun 2012
Total Posts: 192
27 Jul 2014 06:09 PM
bump
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
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 is not online. 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 is not online. 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 is not online. quickeye
Joined: 10 Jun 2012
Total Posts: 192
27 Jul 2014 06:15 PM
shoefly
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. quickeye
Joined: 10 Jun 2012
Total Posts: 192
27 Jul 2014 08:04 PM
well anyways,anyone have a idea?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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