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: Need help fixing this

Previous Thread :: Next Thread 
killer4723 is not online. killer4723
Joined: 05 Aug 2009
Total Posts: 12483
19 Sep 2015 10:46 AM
ServerScriptService.RoundCycle:652: attempt to compare nil with number

pdata.Parent=player
wait()
M:getstat(player,'File1')
for i=1,#recheck do
print(string.sub(recheck[i].Name,5))
if game:GetService("MarketplaceService"):PlayerOwnsAsset(player,tonumber(string.sub(recheck[i].Name,5))) then
if recheck.Value<1 then --- this is line 652
recheck.Value=1
end
end
end
end)

( credit to shungtzu )
Report Abuse
killer4723 is not online. killer4723
Joined: 05 Aug 2009
Total Posts: 12483
19 Sep 2015 10:55 AM
1
Report Abuse
killer4723 is not online. killer4723
Joined: 05 Aug 2009
Total Posts: 12483
19 Sep 2015 11:45 AM
.
Report Abuse
killer4723 is not online. killer4723
Joined: 05 Aug 2009
Total Posts: 12483
19 Sep 2015 11:57 AM
;
Report Abuse
killer4723 is not online. killer4723
Joined: 05 Aug 2009
Total Posts: 12483
19 Sep 2015 11:59 AM
;;
Report Abuse
Dogejia is not online. Dogejia
Joined: 08 Feb 2012
Total Posts: 1873
19 Sep 2015 12:00 PM
You're 100% sure recheck is a valid variable? Same with the other one


pet doge everyday
Report Abuse
hunxrepair is not online. hunxrepair
Joined: 07 Aug 2011
Total Posts: 777
19 Sep 2015 12:19 PM
the error says you're trying to see if something that doesn't exist(nil) is lower then 1

local Table = {0,1,2,nil}

for w = 1, #Table do
if Table[w] < 1 then
print("hi")
end end

same thing above
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