[HELP] error 035: argument type mismatch (argument 3)
#7

Thank you very much, however my command does not work.

For not having to create another topic. you could lend me a hand?

PHP код:
dcmd_setpasswordplayeridparams[ ] )
{
    if ( 
params] == '\0' )
        return 
SendUsageplayerid"/setname (id) (password)" );
    new
        
tNameMAX_PLAYER_NAME ],
        
tString128 ],
        
DB:Database,
        
idx;
    
printf"[ID:%d] typed setname command."playerid );
    
tName strtokparamsidx );
    if ( 
IsNumerictName ) )
    {
        new
            
pid    strvaltName ),
            
passwordlen    strlenparamsidx ] );
        if ( !
IsPlayerConnectedpid ) )
            return 
SendErrorplayerid"Not online!" );
        
GetPlayerNamepidtNameMAX_PLAYER_NAME );
        if ( !
passwordlen )
            return 
SendUsageplayerid"/setpassword (id) (pass)" );
        if ( 
passwordlen || passwordlen 16 )
            return 
SendErrorplayerid"Password must be between 3 - 16 ch." );
        
passwordlen += ( idx );
        for ( new 
idx 1passwordleni++ )
        {
            if ( 
isalnumparams] ) || params] == '_'  )
                continue;
            else
                return 
SendErrorplayerid"Only: 0-9, A-Z, a-z, _" );
        }
        
        new
        
password [128];
        
format(passwordsizeof(password), "%s"strvalparamsidx ] ));
        
Database db_openSZ_SQLITE_DB );
        if ( 
Database )
        {
            if ( 
ResetUserPasswordDatabasetNamepassword ) )
            {
                
formattStringsizeoftString ), "The new %s's password is: {FFFFFF}%s"pidpassword );
                
SendClientMessageplayeridCOLOR_REDtString );
            }
            
db_closeDatabase );
            return 
1;
        }
        return 
printf"[ERROR] NO DATABASE!" );
    }
    else
        return 
SendUsageplayerid"/setpassword (id) (password)" );

Thank you! +rep
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)