Why does 1 method work and other doesen't (cache_get_field_content)
#1

This works:
Код:
  		cache_get_field_content(0, "Name", string);
  		format(BaseInfo[baseid][bName], sizeof(string), string);
  		printf("Loaded base name, enum is now set to %s", BaseInfo[baseid][bName]);
But this doesen't:
Код:
  		cache_get_field_content(0, "Name", BaseInfo[baseid][bName]);
  		printf("Loaded base name, enum is now set to %s", BaseInfo[baseid][bName]);
My enum:
Код:
enum bInfo {
	bName[128],
The first method correctly prints out the result.. the other method doesen't print anything (blank).
Reply


Messages In This Thread
Why does 1 method work and other doesen't (cache_get_field_content) - by Dan. - 09.07.2015, 12:18
Re: Why does 1 method work and other doesen't (cache_get_field_content) - by Vince - 09.07.2015, 12:51

Forum Jump:


Users browsing this thread: 1 Guest(s)