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: Data Persistence

Previous Thread :: Next Thread 
MrChickens is not online. MrChickens
Joined: 21 Feb 2009
Total Posts: 1076
06 Oct 2012 05:52 AM
Does :LoadNumber() with a Save that doesn't exist return 0 or nil?


☜▬▬▬▬▬▬☜☆☞▬▬▬▬▬▬☞
MrChickens, another bird which doesn't fly.
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
06 Oct 2012 07:39 AM
Nil, probably.
Report Abuse
Brandonhare is not online. Brandonhare
Joined: 02 May 2007
Total Posts: 11005
06 Oct 2012 07:41 AM
I think it's 0. LoadString() returns an empty string.
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
06 Oct 2012 08:00 AM
they return the same type i believe.

nil isnt a number so it returns 0

for instances the default is no instance so they would be nil.
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
06 Oct 2012 09:00 AM
So there's no need to add if Player:LoadNumber

Dang.

So that's why my KO fixin' thingy doesn't work...
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
06 Oct 2012 09:06 AM
Wait what? Why they do that? It would make sense if it would return nil, as it's not used, just like "GetFirstChild()" returns nil not "game", just because that object doesn't exist.
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
06 Oct 2012 09:34 AM
I know it is nil, actually.
Report Abuse
Legend26 is not online. Legend26
Joined: 08 Sep 2008
Total Posts: 10586
06 Oct 2012 10:20 AM
Confirmed that it returns 0 when it doesn't exist.
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
06 Oct 2012 10:32 AM
0_o
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
06 Oct 2012 12:20 PM
http://wiki.roblox.com/index.php/LoadNumber_(Method)

yup, 0
Report Abuse
iOpened is not online. iOpened
Joined: 31 Mar 2012
Total Posts: 638
06 Oct 2012 03:53 PM
nil
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