Mismatch help [SQL]
#1

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?
Reply
#2

Username is supposed to be your database handle.
https://sampwiki.blast.hk/wiki/Db_query
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)