inputtext HELP
#1

Hello! Why I am getting those errors?

PHP код:
if(dialogid == DIALOG_PASSWORD)
    {
        if(
response)
        {
            if(
strlen(inputtext) <= 12  && strlen(inputtext) >= 6// (25762)
            
{
                
format(PasswordRemember[playerid], sizeof(PasswordRemember[playerid]), "%s"inputtext);//(25764)
                
PlayerTextDrawSetString(playeridTextdrawPassword[playerid], PasswordRemember[playerid]);
                
DatePersonale[playerid]++;
            }
            else
            {
                
ShowPlayerDialog(playeridDIALOG_PASSWORDDIALOG_STLYE_PASSWORD"You:RPG Registration System:""Please insert your password.""OK""Cancel");
                
SCM(playeridCOLOR_DGREY"Invalid Password! Password must be between 6 and 12 characters.");
            }
        }
    } 
PHP код:
(25762) : error 035argument type mismatch (argument 1)
(
25764) : error 001expected token"]"but found "-identifier-"
(25764) : warning 215expression has no effect
(25764) : error 001expected token";"but found "]"
(25764) : error 029invalid expressionassumed zero 
Reply
#2

Poftim:

Код:
new length = strlen(inputtext);
if(length >= 6 && length <= 12) // (25762) 
            { 
                
                format(PasswordRemember[playerid], 56, inputtext);//(25764) 
                PlayerTextDrawSetString(playerid, TextdrawPassword[playerid], PasswordRemember[playerid]); 
                DatePersonale[playerid]++; 
            }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)