11.12.2016, 18:12
Code:
public OnGameModeInit() { testt[ext] = 1111; testt[ext1] = 1; testt[etc][0] = EOS; strins(testt[etc], "123456", 0); testt[etc1][0] = EOS; strins(testt[etc1], "1234", 0); testt[etc2][0] = EOS; strins(testt[etc2], "12345678", 0); testt[ext2] = 0; testt[ext3] = 1341234; printf("%d, %d, %s, %s, %d, %d, %s", testt[ext], testt[ext1], testt[etc], testt[etc1], testt[ext2], testt[ext3], testt[etc2]); return 1; }
1) 1 текстовую переменную укажем последней в enum, другие текстовые - по середине
Code:
enum test { ext, ext1, etc[7], etc1[5], ext2, ext3, etc2[9], }
Code:
[22:42:56] 1111, 1, 123456, 1234, 0, 1341234, 12345678
Code:
enum test { ext, ext1, etc[7], etc1[5], ext2, ext3, etc2[2], }
Code:
[22:44:12] 1111, 1, 123456, 1234, 0, 1341234, 12345678 [22:44:12] 345678
Code:
enum test { ext, ext1, etc[7], etc1[5], etc2[2], ext2, ext3, }
Code:
[22:48:25] 1111, 1, 123456, 1234, 0, 1341234, 12 [22:48:25] 5678
Code:
enum test { ext, ext1, etc[7], etc2[2], etc1[5], ext2, ext3, }
Code:
[17:36:50] 1111, 1, 123456, 34567, 0, 1341234, 1234567