Maerovich
Умник
MysQl R7
Скажите как добавить в
PHP:
forward LoginCallback(i, password[]);
public LoginCallback(i, password[])
{
new rows, fields, string[144], maximum[128];
cache_get_data(rows, fields);
if(!rows)
{
if(GetPVarInt(i, "wrongPass") == 2) return send(i,"Âû ââåëè 3 ðàçà íåâåðíûé ïàðîëü, ïîýòîìó áûëè êèêíóòû ñåðâåðîì."), Kick(i);
SetPVarInt(i, "wrongPass", GetPVarInt(i, "wrongPass")+1);
format(string, sizeof(string), "Íåâåðíûé ïàðîëü(îñòàëîñü %i/3)\nÂâåäèòå ïàðîëü:", 3 - GetPVarInt(i, "wrongPass"));
ShowPlayerDialog(i, 2, DIALOG_STYLE_PASSWORD, "Àâòîðèçàöèÿ", string, "Âõîä", "Îòìåíà");
return 1;
}
cache_get_field_content(0, "Level", maximum), PlayerInfo[i][pLevel] = strval(maximum);
SetPVarInt(i, "Logged", 1);
send(i, "Âû óñïåøíî àâòîðèçîâàëèñü!");
SpawnPlayer(i), SavePlayer(i);
return 1;
}
HTML:
Sql базу данных
