04.06.2017, 02:37
Yes instead of that use this (provided from above test code posted)
Prints
Hope that was clear to you @op
Also order is an important thing here.As the data type is to be known (array or plane).
PHP код:
#include <a_samp>
enum ENUMERATOR
{
value,
string[24]
}
new ARRAY[][ENUMERATOR]={
{1,"Ghost"},
{2,"dariyon"},
{3,"kalcor"}
}
;
main()
{
for(new i = 0; i < 3;++i)
{
printf("string %s \n", ARRAY[i][ENUMERATOR:1]);
printf("digit %d \n ",ARRAY[i][ENUMERATOR:0]);
}
}
Код:
string Ghost digit 1 string dariyon digit 2 string kalcor digit 3
Also order is an important thing here.As the data type is to be known (array or plane).