Thread
:
CP 2.0 Error
View Single Post
03/21/21, 10:03 AM
#
2
Sharlikran
Join Date: Apr 2014
Posts: 655
Warning: Spoiler
Which line is 2285? If it is "if cptable[setId][slotIndex] ~= nil then" then the table does not have the values at the time it is looked at. So while you are saying "~= nil" the table, setId, and slotIndex need to be defined.
if cptable[setId] == nil then cptable[setId] = {} end
if cptable[setId][slotIndex] == nil then cptable[setId][slotIndex] = {} end
The table will be empty and not nil.
However, I don't think you can have cptable[setId][slotIndex] = nil, if I understand correctly because nil is not important so it would just be cptable[setId] = <<whatever>>
Ooops I didn't see that the error was from the Zos code itself and not your code. You have done something to cause an error in the ZOS code. I do not know the CP system at all. Sorry for posting.
Last edited by Sharlikran : 03/21/21 at
10:07 AM
.
Sharlikran
View Public Profile
Send a private message to Sharlikran
Find More Posts by Sharlikran