db_get_field_int Questions.
#1

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?

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;
}
If there's not another way, at least I want to know if those codes are optimized.

Thank you for your time
Reply


Messages In This Thread
db_get_field_int Questions. - by lautaro97 - 11.06.2018, 20:50
Re: db_get_field_int Questions. - by xMoBi - 11.06.2018, 22:04
Re: db_get_field_int Questions. - by lautaro97 - 11.06.2018, 22:24
Re: db_get_field_int Questions. - by Logic_ - 11.06.2018, 22:30
Re: db_get_field_int Questions. - by lautaro97 - 11.06.2018, 22:37

Forum Jump:


Users browsing this thread: 2 Guest(s)