I need help fixing this error as this never came up and I don’t know how to fix it. If anyone can, please help me.
https://gyazo.com/e8ec978c66164c4512fdcd1c3d259e7b
Error is on line 188.
I need help fixing this error as this never came up and I don’t know how to fix it. If anyone can, please help me.
https://gyazo.com/e8ec978c66164c4512fdcd1c3d259e7b
Error is on line 188.
You’re trying to input a dictionary instead of a number.
So what would I do to fix that?
By getting the value from the table instead of the table itself.
The variable “PassId” should be a reference to an integer value not a table value, check to make sure.
How would I do that again? I forgot
You declare “PassId” here so just assign an integer value to it instead of a table value.
That is a valid integer value which you could pass to the function.
Sorry, I am kinda bad at table values can you explain more or like the number?
How would I grab the value from the table? Would the table be a function or?
If it’s an array, index it using numbers which indicates their positional value, if it’s a dictionary, you have to refer its key.
If you use table.insert()
anywhere, make sure you plug that in with the variable so that the position of where you stored the value is stored in that variable. From my experience, table.insert()
arranges all additions to the table, into an array, so you HAVE to index by numbers, not strings.
Example:
local NewValue = table.insert(Table, Value)
That lets you keep the position. If you see any other table
function that affects tables, see if you can incorporate the same logic. I don’t know if this is fully related because we only have a screenshot of your code, but I hope this helps for future reference.