SendFormatMessage and ShowPlayerDialog aren't called.
#1

Hello,

This is a strange problem. The entire code here works fine, except the last SendFormatMessage and ShowPlayerDialog. They aren't called at all. It's like the compiler skips them, because when I add debug lines till the end of the code, it prints till the end of the code.

pawn Код:
case DIALOG_REGISTER:
        {
            if(response)
            {
                if(!isnull(inputtext))
                {
                    new string[129],IP_Address[16];
                    WP_Hash(string,sizeof(string),inputtext);
                    GetPlayerIp(playerid,IP_Address,sizeof(IP_Address));
                    SetPVarString(playerid,"IP",IP_Address);
                    SetPVarString(playerid,"Password",string);
                    mysql_format(1,string,"INSERT INTO `PlayerInfo` (`PlayerName`, `Password`, `RegisteredIP`) VALUES ('%s', '%s', '%s')",PlayerName(playerid),string,IP_Address);
                    //mysql_query(string);
                    SetPVarInt(playerid,"IsRegistering",1);
                    SendFormatMessage(playerid,COLOR_GREEN,"» EG:RP{FFFFFF}: Account '%s' has successfully been registered.",PlayerName(playerid));
                    ShowPlayerDialog(playerid,DIALOG_REGISTER2,DIALOG_STYLE_INPUT,""#EMBED_GREEN"Expression Gaming Roleplay - "#EMBED_WHITE"Register",""#EMBED_WHITE"Could you please tell me if you are a "#EMBED_BLUE"male"#EMBED_WHITE" or a "#EMBED_PINK"female"#EMBED_WHITE"?","Continue");
                    return 1;
                }
                else return ShowRegisterDialog(playerid);
            }
            else return Kick(playerid);
        }
So the last SendFormatMessage and ShowPlayerDialog aren't working.

For your information, the defines:

http://pastebin.com/xYCFU7JR

I hope to hear your answer!

- Jochem
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)