SA-MP Forums Archive
MySQL error in PAWN - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MySQL error in PAWN (/showthread.php?tid=506846)



MySQL error in PAWN - whando - 14.04.2014

Hey, I deleted my coplicense, and now im getting errorz. Am tired and don't know what to do .


(53831 -- 5383 : error 001: expected token: ",", but found ";"



pawn Код:
mysql_format(dbhandle, query, sizeof query, "INSERT INTO user_licenses(uid, `key`, `is`) VALUES \
            (%d,'%e',%d),(%d,'%e',%d),(%d,'%e',%d),(%d,'%e',%d),(%d,'%e',%d) \
//here//            ON DUPLICATE KEY UPDATE `is` = VALUES(`is`)"
,  
            PlayerInfo[playerid][pdbID], "car", PlayerInfo[playerid][pCarLic],
            PlayerInfo[playerid][pdbID], "fly", PlayerInfo[playerid][pFlyLic],
            PlayerInfo[playerid][pdbID], "boat", PlayerInfo[playerid][pBoatLic],
            PlayerInfo[playerid][pdbID], "fish", PlayerInfo[playerid][pFishLic],
            PlayerInfo[playerid][pdbID], "gun", PlayerInfo[playerid][pGunLic],
           
//till here//       mysql_tquery(dbhandle, query, "", "");



Re: MySQL error in PAWN - whando - 14.04.2014

Nvm got it, forgot a ) .