Hi guys,
I'm working on a game, where i want to compare a user text, which i write in an array, with another array.
It should look like:
Original(Sum) Array which get random Data from big Array every play round:
6x3x1
Text,Numer,Number
Text,Numer,Number
Text,Numer,Number
Text,Numer,Number
Text,Numer,Number
Text,Numer,Number
The user array(Namesanswer) has the same size, but get data from textboxes. In this array is the 3. height not used. The transfer into the array works fine.
Now I want to compare the 1. and 2. height of the both arrays and if the answer is right, then the text/numbers gets green, if not, red. The Numbers works fine, but the comparison of the text fails.
Everything I tried in construct lead to the result, that the comparison is every time wrong. This is my attempt to solve the problem. Maybe someone can say me, what I do wrong.
Surely I could transfer first the values into variables, but is there no way to compare strings in arrays, when I know, where they are located?