09.07.2015, 12:18
This works:
But this doesen't:
My enum:
The first method correctly prints out the result.. the other method doesen't print anything (blank).
Код:
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]);
Код:
cache_get_field_content(0, "Name", BaseInfo[baseid][bName]); printf("Loaded base name, enum is now set to %s", BaseInfo[baseid][bName]);
Код:
enum bInfo { bName[128],