11.06.2018, 20:50
Hi, I've a question... I would like to know if there's another way to replace db_get_field_int and db_get_field_assoc_int in SA-MP versions lower than 0.3.7.
I made those codes and they work correctly, but as I said... їthere's another way to replace them?
If there's not another way, at least I want to know if those codes are optimized.
Thank you for your time
I made those codes and they work correctly, but as I said... їthere's another way to replace them?
Code:
SQLfield_int(DBResult:dbresult, col = 0)
{
static columna[10];
db_get_field(dbresult, col, columna, sizeof(columna));
new const valor_int = strval(columna);
return valor_int;
}
SQLfield_assoc_int(DBResult:dbresult, const col[])
{
static columna[10];
db_get_field_assoc(dbresult, col, columna, sizeof(columna));
new const valor_int = strval(columna);
return valor_int;
}
Thank you for your time

