29.09.2012, 17:50
I remember asking this question like a long time ago, never really got an answer so figured I'm gonna try again and see if anybody got some helpful insight.
I'm trying to figure out a way to get enum data available using a string instead.
I'm not sure how to explain it so I'm gonna come with an example:
I'm trying to figure out a way to get enum data available using a string instead.
I'm not sure how to explain it so I'm gonna come with an example:
pawn Код:
/Normally you would do:
enum testenum{
Test1,
Test2,
Test3,
Test4
};
new enumTest[testenum];
// You would then do for example:
enumTest[Test1]
// To get that variables data.
// Now what I'm trying to do is:
new string[4];
string="Test2";
enumTest[string]