DIALOG_STYLE_INPUT Error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: DIALOG_STYLE_INPUT Error (
/showthread.php?tid=139152)
DIALOG_STYLE_INPUT Error -
GforceNL - 04.04.2010
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")
Re: DIALOG_STYLE_INPUT Error -
Khelif - 04.04.2010
pawn Код:
if(inputtext[] == "InputText")
try that
Re: DIALOG_STYLE_INPUT Error -
Virtual1ty - 04.04.2010
use strcmp:
pawn Код:
new Array1[24],
Array2[24];
if(strcmp(Array1, Array2, true) == 0)
{
//your code
}
Re: DIALOG_STYLE_INPUT Error -
GforceNL - 04.04.2010
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))