Writing and Displaying Strings From a DB
#5

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);
Reply


Messages In This Thread
Writing and Displaying Strings From a DB - by Skyrise - 29.03.2013, 17:29
Re: Writing and Displaying Strings From a DB - by Vince - 29.03.2013, 17:51
Re: Writing and Displaying Strings From a DB - by Skyrise - 29.03.2013, 17:57
Re: Writing and Displaying Strings From a DB - by Skyrise - 05.04.2013, 00:14
Re: Writing and Displaying Strings From a DB - by ReneG - 05.04.2013, 00:48

Forum Jump:


Users browsing this thread: 1 Guest(s)