LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
|
| 03 May 2017 07:43 PM |
| I'm trying to save a dictionary to a datastore, but when I try to I get hit in the face with: "Cannot convert mixed or non-array tables: keys must be strings", and I'm like 99.9999999% sure all of the keys are strings. What did I do wrong? (would I need to post the code?) |
|
|
| Report Abuse |
|
|
gunter5
|
  |
| Joined: 15 Mar 2011 |
| Total Posts: 737 |
|
| |
|
gunter5
|
  |
| Joined: 15 Mar 2011 |
| Total Posts: 737 |
|
|
| 03 May 2017 07:52 PM |
this is why i essentially quit roblox.. yes, post the code.
|
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
| |
|
gunter5
|
  |
| Joined: 15 Mar 2011 |
| Total Posts: 737 |
|
|
| 03 May 2017 08:06 PM |
It honestly looks fine to me as far as i can tell. Why would you use "Type = objType" instead of just using objType and not creating another variable.
|
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
|
| 03 May 2017 08:07 PM |
| So I could do HouseStorage[category][obj].Type |
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
| |
|
gunter5
|
  |
| Joined: 15 Mar 2011 |
| Total Posts: 737 |
|
|
| 03 May 2017 08:20 PM |
try it, only way to find out
|
|
|
| Report Abuse |
|
|
|
| 03 May 2017 08:21 PM |
Does the table have any numerical indices or are you calling any array functions like table.insert on it?
|
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
|
| 03 May 2017 08:23 PM |
| It has no numerical indices and I'm not calling any array functions on it. |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 May 2017 08:25 PM |
jk are you printing all key-value pairs of the table to make sure?
If you're doing that and you're saving the right table then I honestly have no idea.
|
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
| |
|