|
| 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 |
|
|
| |
|
|
| 06 Oct 2012 07:41 AM |
| I think it's 0. LoadString() returns an empty string. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 06 Oct 2012 09:34 AM |
| I know it is nil, actually. |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
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
|
  |
| Joined: 31 Mar 2012 |
| Total Posts: 638 |
|
| |
|