Enumerations
#1

I'm having trouble with enumerations, doing something wrong but have no idea what

This is what i'm trying to do

pawn Код:
enum connections_Data {
    cuniqueID,
    cname[126],
    cleader[126],
    cmaxranks,
    crankname[13][24],
    cbank
};
new connectionData[999][connections_Data];
pawn Код:
crankname[13][24],
I want that to be a string with 12 options

So for example i could do
pawn Код:
format(connectionData[crankname][1], 24, "example 1");
format(connectionData[crankname][2], 24, "example 2");
Reply


Messages In This Thread
Enumerations - by Jack_Leslie - 09.06.2016, 08:16
Re: Enumerations - by Stinged - 09.06.2016, 08:21
Re: Enumerations - by Jack_Leslie - 09.06.2016, 08:23
Re: Enumerations - by Stinged - 09.06.2016, 08:28
Re: Enumerations - by Konstantinos - 09.06.2016, 08:28
Re: Enumerations - by Jack_Leslie - 09.06.2016, 08:30
Re: Enumerations - by Jack_Leslie - 09.06.2016, 08:32
Re: Enumerations - by PrO.GameR - 09.06.2016, 09:01

Forum Jump:


Users browsing this thread: 1 Guest(s)