05.04.2013, 00:48
Add a maximum length.... Look at these cache functions (if you're using R8)
pawn Код:
// Cache functions.
native cache_get_data(&num_rows, &num_fields, connectionHandle = 1);
native cache_get_field(field_index, destination[], connectionHandle = 1, max_len=sizeof(destination));
native cache_get_row(row, idx, destination[], connectionHandle = 1, max_len=sizeof(destination));
native cache_get_row_int(row, idx, connectionHandle = 1);
native Float:cache_get_row_float(row, idx, connectionHandle = 1);
native cache_get_field_content(row, const field_name[], destination[], connectionHandle = 1, max_len=sizeof(destination));
native cache_get_field_int(row, const field_name[], connectionHandle = 1);
native Float:cache_get_field_float(row, const field_name[], connectionHandle = 1);