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

Mysql saving issue

$
0
0
I put these codes inder OnPlayerDisconnect to save stats but these codes don't update the player's stats ,what's the problem in these codes?

Code:

mysql_format(koneksi, query, sizeof(query), "UPDATE `users` SET `Money` = %d, `Bankcash` = %d, `Score` = %d, `Adminlevel` = %d,`Nameban` = %d, `example1` = %d, `example2` = %d,`example3` = %d WHERE `Name` = %e",\
GetPlayerCash(playerid), Player[playerid][Bankcash],GetPlayerScore(playerid),Player[playerid][Adminlevel],
Player[playerid][Nameban],Player[playerid][example1],Player[playerid][example2],Player[playerid][example3], playername);
mysql_query(koneksi, query);

//

mysql_format(koneksi, query, sizeof(query), "UPDATE `users` SET `example4` = %d, `example5` = %d, `example6` = %d, `example7` = %d,`example8` = %d, `example9` = %d, `example10` = %d WHERE `Name` = %e",\
Player[playerid][example4],Player[playerid][example5],Player[playerid][example6],Player[playerid][example7],Player[playerid][example8],Player[playerid][example9],
Player[playerid][example10], playername);
mysql_query(koneksi, query);


Viewing all articles
Browse latest Browse all 18226

Trending Articles



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