Swe-DivX Posted October 21, 2021 Posted October 21, 2021 Bool Function AttributeFileSort() String path = AttributeFilesPath + "Attributes.json" jsonutil.Load(path) StorageUtil.StringListSort(path, "attribute") ; Track JsonUtil.SetStringValue(path, "LastStringListEdit", "Sort Attributes") JsonUtil.SetStringValue(path, "LastModEdit", "Sexlife " + MAIN.CONFIG.modVersion) jsonutil.Save(path, false) jsonutil.UnLoad(path, true, false) return true EndFunction StorageUtil.StringListSort(path, "attribute") type mismatch on parameter 1 (did you forget a cast?) Cant get this to work. Trying to sort the attributes in attributes file. Would be very grateful if anyone could help ?
AndrewLRG Posted October 21, 2021 Posted October 21, 2021 48 minutes ago, Swe-DivX said: StorageUtil.StringListSort(path, "attribute") type mismatch on parameter 1 (did you forget a cast?) Cant get this to work. Trying to sort the attributes in attributes file. Would be very grateful if anyone could help ? Parameter 1 in StringListSort should be a Form, while you are using s String "Path".
Swe-DivX Posted October 22, 2021 Author Posted October 22, 2021 2 hours ago, AndrewLRG said: Parameter 1 in StringListSort should be a Form, while you are using s String "Path". mixed up StorageUtil and JsonUtil, trying to get the list of attributes sorted
Recommended Posts
Archived
This topic is now archived and is closed to further replies.