18.03.2012, 04:13
You forgot the "else" word on your last statement. Hopefully, that's the only problem.
Try this:
NOTE: I removed two closing brackets and "return 1;" on the last part.
Try this:
pawn Код:
if(dialogid == 667)
{
if(response)
{
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
gPlayerLogged[playerid] = 1;
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
SCM(playerid, COLOR_RED, "You have logged in. You may now spawn.");
}
else
{
gPlayer[playerid] += 1;
if(gPlayer[playerid] == 1)
{
SCM(playerid, COLOR_RED, "Wrong Password. 1/3");
}
if(gPlayer[playerid] == 2)
{
SCM(playerid, COLOR_RED, "Wrong Password. 2/3");
}
else
{
SCM(playerid, COLOR_RED, "Wrong Password. 3/3. You have been kicked.");
Kick(playerid);
}
}
}
}