Jump to content

Script StorageUtil.StringListSort type mismatch on parameter 1


Swe-DivX

Recommended Posts

Posted
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 ?

Posted
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".

Posted
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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...