SA-MP Forums Archive
Error will be triggered to OnQueryError - 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: Error will be triggered to OnQueryError (/showthread.php?tid=415857)



Error will be triggered to OnQueryError - maverape - 15.02.2013

I got a error, don't really know how to get over of this shit

Код:
mysql_format(pms, query, "UPDATE playeracc SET playername=%s WHERE id=%d", pNome(playerid), userid[playerid]);
mysql_function_query(pms, query, false, "MySQL_Return", "");
error
Код:
[19:17:46] ProcessQueryThread(MySQL_Return) - Executing query UPDATE playeracc SET playername=Rodolf_Pasqueto WHERE id=1...
[19:17:46] ProcessQueryThread(MySQL_Return) - Error will be triggered to OnQueryError().
I'm pretty sure that I have the playeracc table.


Re: Error will be triggered to OnQueryError - iggy1 - 15.02.2013

You have to enclose strings in single quotes.

Код:
"UPDATE playeracc SET playername='%s' WHERE id=%d"