Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

2x Sql Problem

$
0
0
PHP Code:

if(Local[playerid][jegyezve]) {
mysql_format(Sqlquerysizeof(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(Sqlqueryquery);
} else {
mysql_format(Sqlquerysizeof(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(Sqlqueryquery);


At the same error 2 query.
PHP Code:

[log-coreexception 0XC0000005 (ACCESS_VIOLATIONfrom Vectored Exception Handler catchedshutting log-core down 


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>