Query not working..
#1

Why this query is not working?

pawn Код:
command(test, playerid, params[])
{
    new query[100];
    format(query, sizeof(query),"UPDATE vehicles SET lock = %d WHERE id = %d",0,61);
    mysql_query(query);
    return 1;
}
EDIT: I'm using BlueG plugin the version is R6.

EDIT: Error from Debug file:
Quote:

[13:51:49] CMySQLHandler::Query(UPDATE vehicles SET lock = 0 WHERE id = 61) - 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 'lock = 0 WHERE id = 61' at line 1)

Reply


Messages In This Thread
Query not working.. - by BlackRaven - 06.05.2013, 12:46
Re: Query not working.. - by Yashas - 06.05.2013, 12:55
Re: Query not working.. - by BlackRaven - 06.05.2013, 12:56
Re: Query not working.. - by Yashas - 06.05.2013, 13:02
Re: Query not working.. - by BlackRaven - 06.05.2013, 13:04
Re: Query not working.. - by Lionel - 06.05.2013, 13:07
Re: Query not working.. - by BlackRaven - 06.05.2013, 13:09
Re: Query not working.. - by Lionel - 06.05.2013, 13:11
Re: Query not working.. - by BlackRaven - 06.05.2013, 13:13
Re: Query not working.. - by Lionel - 06.05.2013, 13:13

Forum Jump:


Users browsing this thread: 2 Guest(s)