05.01.2014, 07:30
For update query, shouldn't we use this (?):
Also, you are escaping player name, why don't you escape password, lol?
pawn Code:
mysql_format(mysql, query, sizeof(query), "UPDATE `players` SET `Admin`=%d, `VIP`=%d, `Money`=%d, `posX`=%f, `posY`=%f, `posZ`=%f WHERE `ID`=%d",\
pInfo[playerid][Admin], pInfo[playerid][VIP], pInfo[playerid][Money], pos[0], pos[1], pos[2], pInfo[playerid][ID]);
mysql_query(mysql, query, false); // use_cache bool is not enabled, that means un-cached query.
/* native mysql_query(conhandle, query[], bool:use_cache = true); */