Threaded query into a dialog? Doesn't seem to work.
#2

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:
PHP код:
// before loop
dialogstring #COL_WHITE;

// in loop
cache_get_field_content(n"Crime"PlayerArrests[n][ar_cr], 24);

strcat(dialogstringPlayerArrests[n][ar_cr]);
strcat(dialogstring"\n"); 
Reply


Messages In This Thread
Threaded query into a dialog? Doesn't seem to work. - by Dokins - 12.11.2015, 09:22
Re: Threaded query into a dialog? Doesn't seem to work. - by Vince - 12.11.2015, 11:02
Re: Threaded query into a dialog? Doesn't seem to work. - by Dokins - 12.11.2015, 11:19

Forum Jump:


Users browsing this thread: 1 Guest(s)