format(query2,sizeof(query2),"UPDATE Drugs SET Receptai = 0, '%s' = 1 WHERE Username = '%s'",Preke,Name);
:30] CMySQLHandler::Query(UPDATE Drugs SET Receptai = 0, 'Ambroxolis' = 1 WHERE Username ) - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''Ambroxolis' = 1 WHERE Username' at line 1)
%s = '1'
format(query2,sizeof(query2),"UPDATE `Drugs` SET Receptai = 0, %s = 1 WHERE Username = '%s'",Preke,Name);
[22:27:57] CMySQLHandler::Query(UPDATE `Drugs` SET Receptai = 0, Ambroxolis = 1 WHERE Username ) - Successfully executed.
GivePlayerMoney(playerid,-Kaina);
PlayerInfo[playerid][money]-=Kaina;
new query2[64];
GetPlayerName(playerid,Name,sizeof(Name));
format(query2,sizeof(query2),"UPDATE `Drugs` SET Receptai = 0, %s = 1 WHERE Username = '%s'",Preke,Name);
mysql_query(query2);
format(query2,sizeof(query2),"UPDATE `Drugs` SET Receptai = 0, %s = +1 WHERE Username = '%s'",Preke,Name);
UPDATE `Drugs` SET Receptai = 0, %s = %s + 1 WHERE Username = '%s' |
format(query2,sizeof(query2),"UPDATE `Drugs` SET Receptai = 0, %s = %s +1 WHERE Username = '%s'",Preke,Preke,Name);
format(query,sizeof(query),"INSERT INTO `houses` (Price,enX,enY,enZ,exX,exY,exZ,Interior) VALUES (%d,%f,%f,%f,%f,%f,%f,%d)",tmp,PosX,PosY,PosZ,x,y,z,tmp2);
[09:39:32] CMySQLHandler::Query(INSERT INTO `houses` (Price,enX,enY,enZ,exX,exY,exZ,Interior) VALUES (50000,-185.327911,965.026733,18.267084,140.169998,1366.06) - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1)
format(query,sizeof(query),"INSERT INTO houses (Price, enX, enY, enZ, exX, exY, exZ, Interior) VALUES('%d', '%f', '%f', '%f', '%f', '%f', '%f', '%d')", tmp, PosX, PosY, PosZ, x, y, z, tmp2);
format(query,sizeof(query),"INSERT INTO houses (Price, enX, enY, enZ, exX, exY, exZ, Interior) VALUES('%d', '%f', '%f', '%f', '%f', '%f', '%f', '%d')", tmp, PosX, PosY, PosZ, x, y, z, tmp2);
[10:36:17] CMySQLHandler::Query(INSERT INTO houses (Price, enX, enY, enZ, exX, exY, exZ, Interior) VALUES('40000', '-186.226043', '964.828674', '18.233377', '1) - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''1' at line 1)