31.05.2014, 17:52
Quote:
Oh I misread that. Remove the exclamation point, and change your "true" to "false."
|
EDIT:
pawn Код:
if(dialogid == LOGIN_DIALOG)
{
if(!response)
{
ShowPlayerDialog(playerid, LOGIN_DIALOG, DIALOG_STYLE_PASSWORD, "Login", "Type in your password", "Login", "Cancel");
}
else
{
new escapedPassword[129];
WP_Hash(escapedPassword, sizeof(escapedPassword), inputtext);
if(strcmp(escapedPassword,PlayerInfo[playerid][pPass],false))
{
SendClientMessage(playerid, -1, "Incorrect Password Entered - Please try again.");
ShowPlayerDialog(playerid, LOGIN_DIALOG, DIALOG_STYLE_PASSWORD, "Login", "Type in your password", "Login", "Cancel");
}
else
{
LoadPlayer(playerid);
format(GlobalString, sizeof(GlobalString), "Welcome "COL_LIGHTBLUE"%s!",GetName(playerid));
SendClientMessage(playerid, -1, GlobalString);
SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ], PlayerInfo[playerid][pAngle], 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
mysql_format(sqldb, query, sizeof(query), "SELECT * FROM vehicles WHERE owner = '%s'", GetName(playerid));
mysql_tquery(sqldb, query, "VehicleCheck", "i", playerid);
TogglePlayerSpectating(playerid, false);
}
}
return 1;
}