24.04.2012, 12:52
if is look like that when i press second button of dialog_style_msgbox i will be kicked
if is look like that when i press second button of dialog_style_msgbox nothing happens
pawn Код:
if(dialogid == 334)
{
if(response)
{
if(strval(inputtext) || strlen(inputtext))
{
new adminsecurity = strval(inputtext);
if(PlayerInfo[playerid][pSec] == adminsecurity)
{
SendClientMessage(playerid, 0xFFFFFFAA, " Acum poti folosi toate comenzile, ai grija sa nu abuzezi");
AdminSecurity[playerid] = 1;
}
else
{
GetPlayerName(playerid, sendername, sizeof(sendername));
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 4) { PlayerInfo[playerid][pLocked] = 1; }
format(string, 128, "AdmWarning: %s a gresit parola", sendername);
ABroadCast(COLOR_YELLOW,string,1);
SendClientMessage(playerid, COLOR_GREY,"* Wrong Password!");
}
}
}
}
}
else
{
Kick(playerid);
}
return 1;
}
pawn Код:
if(dialogid == 334)
{
if(response)
{
if(strval(inputtext) || strlen(inputtext))
{
new adminsecurity = strval(inputtext);
if(PlayerInfo[playerid][pSec] == adminsecurity)
{
SendClientMessage(playerid, 0xFFFFFFAA, " Acum poti folosi toate comenzile, ai grija sa nu abuzezi");
AdminSecurity[playerid] = 1;
}
else
{
GetPlayerName(playerid, sendername, sizeof(sendername));
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 4) { PlayerInfo[playerid][pLocked] = 1; }
format(string, 128, "AdmWarning: %s a gresit parola", sendername);
ABroadCast(COLOR_YELLOW,string,1);
SendClientMessage(playerid, COLOR_GREY,"* Wrong Password!");
}
}
}
}
}
return 1;
}