Adaugi
new pip[16];
GetPlayerIp(i, pip, sizeof(pip));
if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login
{
// Aici
}
in loc de
new pName[30];
new query[512];
GetPlayerName(i, pName, sizeof(pName));
mysql_format(sqldb, query, sizeof(query) ,"INSERT INTO `rconlogs` (`ID`,`Admin`,`Password`, `Time`, `IP`) VALUES ('','%e','%s',CURRENT_TIMESTAMP,'%e')", pName, password, ip);
mysql_query(sqldb, query);
si in ea, unde scrie // Aici pui
new pName[30];
new query[512];
GetPlayerName(i, pName, sizeof(pName));
mysql_format(sqldb, query, sizeof(query) ,"INSERT INTO `rconlogs` (`ID`,`Admin`,`Password`, `Time`, `IP`) VALUES ('','%e','%s',CURRENT_TIMESTAMP,'%e')", pName, password, ip);
mysql_query(sqldb, query);