What am i doing wrong here?
#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.
Reply


Messages In This Thread
What am i doing wrong here? - by Whizion - 15.11.2011, 13:45
Re: What am i doing wrong here? - by Whizion - 15.11.2011, 14:28
Re: What am i doing wrong here? - by Whizion - 15.11.2011, 19:14
Re: What am i doing wrong here? - by Whizion - 15.11.2011, 21:03
Re: What am i doing wrong here? - by Scenario - 15.11.2011, 21:08
Re: What am i doing wrong here? - by Whizion - 16.11.2011, 12:03

Forum Jump:


Users browsing this thread: 1 Guest(s)