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

Quote:
Originally Posted by PawnHunter
Посмотреть сообщение
Can you show me ResetUserPassword function? And 'tName' 'Database' variables?
PHP код:
stock ResetUserPasswordDB:DatabaseName[ ], Password[ ] )
{
    new 
DBResult:Result;
    if ( 
Database )
    {
        new
            
Query    512 ],
            
Pw64 ];
        
formatQuerysizeofQuery ), "SELECT * FROM `users` WHERE `name`=lower('%s') AND `password`='%s'"NamePw );
        
Result db_queryDatabaseQuery );
        if ( 
db_num_fieldsResult ) )
        {
            
db_free_resultResult );
            
formatQuerysizeofQuery ), "UPDATE `users` SET `password`='%s' WHERE `name`=lower('%s') AND `password`='%s'"PasswordNamePw );
            
Result db_queryDatabaseQuery );
            
db_free_resultResult );
            return 
1;
        }
        else
        {
            
db_free_resultResult );
            return 
0;
        }
    }
    else
    {
        
printf"[ERROR] NO DATABASE!" );
        return 
0;
    }

Reply


Messages In This Thread
[HELP] error 035: argument type mismatch (argument 3) - by Guss - 07.11.2015, 17:49
Re: [HELP] error 035: argument type mismatch (argument 3) - by iKarim - 07.11.2015, 17:52
Respuesta: Re: [HELP] error 035: argument type mismatch (argument 3) - by Guss - 07.11.2015, 18:05
Re: [HELP] error 035: argument type mismatch (argument 3) - by iKarim - 07.11.2015, 18:14
Respuesta: [HELP] error 035: argument type mismatch (argument 3) - by Guss - 07.11.2015, 18:17
Re: [HELP] error 035: argument type mismatch (argument 3) - by iKarim - 07.11.2015, 18:31
Respuesta: [HELP] error 035: argument type mismatch (argument 3) - by Guss - 07.11.2015, 18:56

Forum Jump:


Users browsing this thread: 2 Guest(s)