27.05.2014, 11:21
pawn Код:
if(dialogid == admin_security)
{
if(response)
{
if(strlen(inputtext))
{
if(inputtext == "anypasshere") // error line
{
SCM(playerid,COLOR_SKYBLUE,"You Have Entered the correct admin password");
return 1;
}
else
{
SCM(playerid,COLOR_RED,"You Have Entered the Wrong admin password");
ShowPlayerDialog(playerid,admin_security,DIALOG_STYLE_INPUT,"Admin Password",""SKYBLUE"Place The Admin Password Here","Admin Login","");
}
}
else
{
ShowPlayerDialog(playerid,admin_security,DIALOG_STYLE_INPUT,"Admin Password",""SKYBLUE"Place The Admin Password Here","Admin Login","");
SCM(playerid,COLOR_RED,"You Have Entered the Wrong admin password");
}
}
}
pawn Код:
(7827) : error 033: array must be indexed (variable "inputtext")