24.01.2016, 10:50
You should use the corresponding function
PHP код:
LabelInfo[i][LabelID] = db_get_field_assoc_int(qresult, "Label_ID"); // Label ID
db_get_field_assoc(qresult, "Label_Text", LabelInfo[i][LabelText], 30); // Label Text
Quote:
Originally Posted by a_sampdb.inc
native db_get_field(DBResult:dbresult, field, result[], maxlength);
native db_get_field_int(DBResult:result, field = 0); native Float:db_get_field_float(DBResult:result, field = 0); native db_get_field_assoc(DBResult:dbresult, const field[], result[], maxlength); native db_get_field_assoc_int(DBResult:result, const field[]); native Float:db_get_field_assoc_float(DBResult:result, const field[]); |