DIALOG_STYLE_INPUT Error
#1

Hello,
I have some problem with my Input Dialog..
when they Type: InputText, They need to go into the server, Else They get kicked.
I get this error:

Код:
: error 033: array must be indexed (variable "inputtext")
This is the line:

Код:
if(inputtext == "InputText")
Reply
#2

pawn Код:
if(inputtext[] == "InputText")
try that
Reply
#3

use strcmp:
pawn Код:
new Array1[24],
            Array2[24];
       
        if(strcmp(Array1, Array2, true) == 0)
        {
                //your code
        }
Reply
#4

Quote:
Originally Posted by Virtual1ty
use strcmp:
pawn Код:
new Array1[24],
            Array2[24];
       
        if(strcmp(Array1, Array2, true) == 0)
        {
                //your code
        }
Now i have this:

Код:
			if(strcmp(Array1, Array2, true) == 0)
			{
	  		if(strcmp(inputtext[] == KEY, true))
	  		{
					ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_MSGBOX, "Key Accepted!", "Welcome To The Server", "Spawn", "Spawn");
				}
But i still have this error:

Код:
error 029: invalid expression, assumed zero
This is the Line: 	  		if(strcmp(inputtext[] == KEY, true))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)