10.07.2017, 17:51
Hi, I have this three functions to save different values, the SaveSQLInt works perfect, but the problem is with the SaveSQLFloat and SaveSQLString, those aren't saving the values...
Код:
Servidor:SaveSQLInt(sqlid, table[], row[], value)
{
new query[128];
mysql_format(sqlConnection, query, sizeof(query), "UPDATE %e SET %e = %i WHERE id = %i", table, row, value, sqlid);
mysql_pquery(sqlConnection, query);
return true;
}
Servidor:SaveSQLFloat(sqlid, table[], row[], Float:value)
{
new query[128];
mysql_format(sqlConnection, query, sizeof(query), "UPDATE %e SET %e = %f WHERE id = %i", table, row, value, sqlid);
mysql_pquery(sqlConnection, query);
return true;
}
Servidor:SaveSQLString(sqlid, table[], row[], value[])
{
new query[128];
mysql_format(sqlConnection, query, sizeof(query), "UPDATE %e SET %e = %s WHERE id = %i", table, row, value, sqlid);
mysql_pquery(sqlConnection, query);
return true;
}


