|
| 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 |
|
|
| |
|
| |
|
| |
|
| |
|
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 |
|
|
|
| 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 |
|
|