I execute the next code:
Let>VAREXPLICIT=0
Label>a
Let>kilo[0]=Ana
Let>kilo[1]=Rosario
Let>kilo[3]=Rebeca
Let>kilo[2]=Antonia
Label>3,resul
Random>3,resul
MessageModal>%resul%,kilo[%resul%]
Goto>a
I thought the Message were like this: 2,Rebeca
But the Messages are like this: 2,kilo[2]
What is wrong?
(How could I put the instruction if VAREXPLICIT were 1?)
Variable arrays
Moderators: JRL, Dorian (MJT support)
Hi,
You need to do this:
Let>VAREXPLICIT=0
Label>a
Let>kilo[0]=Ana
Let>kilo[1]=Rosario
Let>kilo[3]=Rebeca
Let>kilo[2]=Antonia
Label>3,resul
Random>3,resul
Let>mr=kilo[%resul%]
MessageModal>%resul%,%mr%
Goto>a
You need to do this:
Let>VAREXPLICIT=0
Label>a
Let>kilo[0]=Ana
Let>kilo[1]=Rosario
Let>kilo[3]=Rebeca
Let>kilo[2]=Antonia
Label>3,resul
Random>3,resul
Let>mr=kilo[%resul%]
MessageModal>%resul%,%mr%
Goto>a
MJT Net Support
[email protected]
[email protected]