Hi.
Im saving the info of a user.
The problem is that in the command that i send they don't work and the info don't get saved.
The error appears in the title:
Code:
Commands out of sync; you can't run this command now
And the code is the next one:
PHP Code:
new Handle:sql_consult = SQL_PrepareQuery(g_sql_connection, "UPDATE users SET combo_max='%d' WHERE `id`='%d'", g_combo_leader, g_user[id]);
if(!SQL_Execute(sql_consult))
{
new sql_error[512];
SQL_QueryError(sql_consult, sql_error, 511);
log_to_file("error_sql.log", "%s", sql_error);
}
SQL_FreeHandle(sql_consult);
Thanks in advance!