04.05.2012, 02:42
Add a debug message to see if the password is being parsed correctly.
pawn Код:
public OnPlayerConnect(playerid)
{
SetPlayerColor(playerid, COLOR_WHITE);
Logged[playerid] = 0;
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"This account is currently registered\nPlease type in the account's password below.","Login","Quit");
printf("Pass: %d", PlayerInfo[playerid][pPass]); // this
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Register",""COL_WHITE"This account is not registered\nPlease type in the wanted password below to reigster the account.","Register","Quit");
}
return 1;
}