DIALOG RESPONSE ERROR
#1

Hello,

I've a problem with dialog response, it has stopped working all of sudden.

We're talking about easyDialog include.

PHP Code:
if(cache_num_rows())
        {
            
format(stringsizeof(string), "{FFFFFF}Welcome back, {FF0000}%s{FFFFFF}!\n{FFFFFF}Please enter your password to continue."GetName(playerid));
            
Dialog_Show(playeridLOGINDIALOG_STYLE_PASSWORD"{ADD8E6}Login"string"Login""Cancel");
        } 
PHP Code:
Dialog:LOGIN(playeridresponselistiteminputtext[])
{
    
printf("DEBUG: (DIALOG_LOGIN): PLAYERID: %d, RESPONSE: %d, LISTITEM: %d"playeridresponselistitem);
    if(
response)
    {
        new 
query[500], Password[BCRYPT_HASH_LENGTH];
        
mysql_format(Databasequerysizeof(query), "SELECT `Password` FROM `userdata` WHERE `User`='%e' LIMIT 1;"GetName(playerid));
        new 
Cache:result mysql_query(Databasequery);
        
cache_get_value_name(0"Password"PasswordBCRYPT_HASH_LENGTH);
        
bcrypt_check(inputtextPassword"OnPasswordChecked""d"playerid);
        
cache_delete(result);
    }
    else
        
Kick(playerid);
    return 
1;

Tried changing return 1 to 0, same result
Debug message which I've added doesn't print at all

The dialog pops up, but RESPONSE isn't working
All plugins correctly loaded

What could be the problem?
Reply


Messages In This Thread
DIALOG RESPONSE ERROR - by Kolibrii - 09.03.2019, 15:26
Re: DIALOG RESPONSE ERROR - by v1k1nG - 09.03.2019, 15:33
Re: DIALOG RESPONSE ERROR - by Kolibrii - 09.03.2019, 15:38
Re: DIALOG RESPONSE ERROR - by Kolibrii - 10.03.2019, 11:40
Re: DIALOG RESPONSE ERROR - by Kolibrii - 11.03.2019, 13:50

Forum Jump:


Users browsing this thread: 2 Guest(s)