12.11.2015, 11:02
cache_get_row does not work like this. You do not get a delimited string. Each column must be accessed individually and you cannot use sscanf.
Furthermore, since your entire message seems to be in white it seems counter productive to repeat the color code over and over again. It is much simpler to do it like so:
Furthermore, since your entire message seems to be in white it seems counter productive to repeat the color code over and over again. It is much simpler to do it like so:
PHP код:
// before loop
dialogstring = #COL_WHITE;
// in loop
cache_get_field_content(n, "Crime", PlayerArrests[n][ar_cr], 24);
strcat(dialogstring, PlayerArrests[n][ar_cr]);
strcat(dialogstring, "\n");