Mismatch help [SQL] - 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: Mismatch help [SQL] (
/showthread.php?tid=570789)
Mismatch help [SQL] -
Tomix - 13.04.2015
Hello I'm using BUD to make my queries and I've attempted to make a command but I get this mismatch error
Код:
warning 213: tag mismatch
On these lines
Код:
format(Query, sizeof(Query), "SELECT NULL FROM users WHERE username = '%s' LIMIT 0, 1", DB_Escape(new_name));
Result = db_query(Username, Query);//normally on this but the format belongs to it.
//
format(Query, sizeof(Query), "UPDATE users SET username = '%s' WHERE username = '%s'",DB_Escape(new_name), DB_Escape(old_name));
db_query(Username, Query);//normally on this but the format belongs to it.
Could anyone help me out telling me whats wrong?
Re: Mismatch help [SQL] -
Jimmy0wns - 13.04.2015
Username is supposed to be your database handle.
https://sampwiki.blast.hk/wiki/Db_query