Array trouble
#1

pawn Код:
main()
{

            new Ranks[3][7][] =
            {
                {{"Nothing\t"},{"Nothing\t"},{"Nothing\t"},{"Nothing\t"},{"Nothing\t"},{"Nothing\t"},{"Nothing\t"}},
                {{"Nothing\t"},{"Cadet\t"},{"Officer"},{"Corporal"},{"Sergeant"},{"Lieutenant"},{"Chief\t"}},
                {{"Nothing\t"},{"Outsider"},{"Associate"},{"Soldier"},{"Capo\t"},{"Underboss"},{"Godfather"}}
            };
           
            printf("Ranks[2][6] = %s", Ranks[2][6]);



}
The code should print: 'Ranks[2][6] = Godfather' but it doesn't, it prints 'Ranks[2][6] = ther'.

What did i do wrong, please help.

Thank you.
Reply
#2

Thanks, but unfortunately it didn't work, i gave up on it... i made this using switch.

It's slower.. but at least it works.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)