A little problem...
#1

Hello,

I've got a little problem with my code and I don't know why an error appears. Could anyone help me?

In top of script:
Код:
#define AdminPassword "password"
Later, under OnDialogResponse:
Код:
if(strval(inputtext) == AdminPassword) //Line 1037
And I have...

Код:
...(1037) : error 033: array must be indexed (variable "-unknown-")
... error under that 1037 line. I can't fix this (because I don't know what's wrong), so I hope someone will help me in that.
Reply
#2

strval is used to convert a string to an integer.
Use strcmp.
Reply
#3

Why don't you try it as new AdminPass[24];?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)