igunaa
|
  |
| Joined: 15 Sep 2010 |
| Total Posts: 2588 |
|
|
| 21 Oct 2017 10:45 PM |
http://wiki.roblox.com/index.php?title=Saving_Player_Data
"Handling DataStore failures" code part says that we use could ONLY player.UserId as a DataStore key, which gives an error by a type incompatibility, since player.UserId returns an Int and a DataStore key MUST be an String.
Said the wise. |
|
|
| Report Abuse |
|
|
22618709
|
  |
| Joined: 25 Dec 2011 |
| Total Posts: 19221 |
|
|
| 21 Oct 2017 10:47 PM |
| Doesnt lua auto tostring when needed? |
|
|
| Report Abuse |
|
|
Tunicus
|
  |
| Joined: 16 Feb 2013 |
| Total Posts: 3165 |
|
|
| 21 Oct 2017 10:51 PM |
| Looks like it's auto-converted to string on the C-side, I'm testing in studio and there's no difference between a number and a string equivalent |
|
|
| Report Abuse |
|
|
igunaa
|
  |
| Joined: 15 Sep 2010 |
| Total Posts: 2588 |
|
|
| 21 Oct 2017 10:52 PM |
I guess it should, since we never have to define data types, but DataStore keys should start with a char as far as I`m concerned.
Said the wise. |
|
|
| Report Abuse |
|
|
s3vvy
|
  |
| Joined: 24 Feb 2011 |
| Total Posts: 983 |
|
|
| 21 Oct 2017 11:03 PM |
Lua has coercion at run-time. Read the Lua manual like I did noob.
Subscribe for scripting tutorials and more videos! www.youtube.com/c/SPiNClan |
|
|
| Report Abuse |
|
|