03.03.2012, 10:03
(
Последний раз редактировалось Jochemd; 03.03.2012 в 10:36.
)
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.
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
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);
}
For your information, the defines:
http://pastebin.com/xYCFU7JR
I hope to hear your answer!
- Jochem