30.01.2011, 16:39
How do I get a string from file to enum info?
I've got;
and using MXIni to get a string is; (ofcourse opening the file first,
as all the integers are taken correctly)
(This is done in a loop, yes)
But the string isn't stored, what is wrong?
Note that this works with normal strings, but not in enum data...
Also note that all other data is stored, but not strings.
I've got;
pawn Код:
enum GroupData
{
gExample[16],
}
new gData[PLAYERS][GroupData];
as all the integers are taken correctly)
(This is done in a loop, yes)
pawn Код:
ini_getString(file,"Example",gData[i][gExample]);
Note that this works with normal strings, but not in enum data...
Also note that all other data is stored, but not strings.