Dear forum,
I am not a novice to programming however I am new to AGK.
I am trying to create text with the input from an array, heres my code:
...
type myQuestionType
question as string
answer1 as string
answer2 as string
answer3 as string
answer4 as string
endtype
questionText = 101
global questions as myQuestionType[4]
questions[0].question = "This is question0"
questions[1].question = "This is question1"
questions[2].question = "This is question2"
questions[3].question = "This is question3"
global iCurrentQuestion = 1
iCurrentQuestion = random(0,3)
...
CreateText (questionText, questions[iCurrentQuestion].question )
The code doesnt give any errors, the depth is also not a problem because when I replace the createText with CreateText (questionText, "Hello world" ) it will work fine.
I am probably making some kind of noob mistake
thx