Print enum variables.
#4

I know what you mean. You want to loop through an enum like it was an array. I need that too, I'm trying to make a function that saves all the enum data to a file (finally found use for tagof())

I think it's possible because sscanf somehow stores all the required info in the enum without actually passing it their names.
Quote:
Originally Posted by ******
pawn Код:
enum
    E_DATA
{
    E_DATE_C,
    Float:E_DATA_X,
    E_DATA_NAME[32],
    E_DATA_Z
}

main
{
    new
        var[E_DATA];
    sscanf("1 12.0 Bob c", "e<ifs[32]c>", var);
}
Reply


Messages In This Thread
Print enum variables. - by AhEaD_ - 29.07.2011, 08:16
Re: Print enum variables. - by Godhimself - 29.07.2011, 08:46
Re: Print enum variables. - by AhEaD_ - 30.07.2011, 22:13
Re: Print enum variables. - by CaHbKo - 01.08.2011, 10:21

Forum Jump:


Users browsing this thread: 4 Guest(s)