PHP Code:
if(Local[playerid][jegyezve]) {
mysql_format(Sql, query, sizeof(query), "IF EXISTS (SELECT * FROM `jegyezve` WHERE `username` = '%e') BEGIN UPDATE `jegyezve` SET `IP`='%e' WHERE `username` = '%e' END ELSE BEGIN INSERT INTO `jegyezve` (`username`, `IP`) VALUES ('%e', '%e') END", Account[playerid][ausername], Account[playerid][IP], Account[playerid][ausername], Account[playerid][ausername], Account[playerid][IP]);
mysql_tquery(Sql, query, query);
} else {
mysql_format(Sql, query, sizeof(query), "IF EXISTS (SELECT * FROM `jegyezve` WHERE `username` = '%e') BEGIN DELETE FROM `jegyezve` WHERE `username` = '%e' END", Account[playerid][ausername], Account[playerid][ausername]);
mysql_tquery(Sql, query, query);
}
PHP Code:
[log-core] exception 0XC0000005 (ACCESS_VIOLATION) from Vectored Exception Handler catched; shutting log-core down