Quote: " CreateText( MyArray$[1] ,MyString$[x ),"
By the looks of it, MyArray$ is a string and thus that syntax is incorrect. You cannot assign a text object to a string array.
https://www.appgamekit.com/documentation/Reference/Text/CreateText.htm
You can do something like this:
myArray as integer[10]
for i = 1 to 10
myArray[i] = createText(myString[i])
setTextPosition(myArray[i], x, y)
next i
Or, simplify it using a UDT. The benefit here is you don't have to worry about the integrity of the data in keeping two arrays parallel.
Type MyText
index as integer
text as string
EndType
myArray as MyText[10]
for i = 1 to 10
myArray[i].index = createText(myArray[i].text)
next i
And, depending on what you're doing, you don't really even need to save the text in a separate array if you're creating a text object for each one. As it's already being stored in the text object itself, just keep an integer array of the indices and retrieve the text string this way as needed:
myString = getTextString(index)