05.02.2012, 21:49
Hi, I have a problem using dialog which I can't fix. When I connect to my home server and type a password in dialog.. Dialog just dissapears and nothing happens.
Here's the code: (someone please help)
Here's the code: (someone please help)
pawn Код:
case 1:
{
if ( !response ) return Kick ( playerid );
if( response )
{
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
PlayerLogged[playerid] = 1;
SpawnPlayer(playerid);
format(string, sizeof(string), "~w~Welcome ~n~~y~ %s", sendername);
GameTextForPlayer(playerid, string, 5000, 1);
}
else
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"You have entered an incorrect password.\n"COL_WHITE"Type your password below to login.","Login","Quit");
}
return 1;
}
}