What am i doing wrong here? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: What am i doing wrong here? (
/showthread.php?tid=297320)
What am i doing wrong here? -
Whizion - 15.11.2011
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.
Re: What am i doing wrong here? -
Whizion - 15.11.2011
Sorry for bumping so quick, but i need this fast. :/
Re: What am i doing wrong here? -
Whizion - 15.11.2011
BUMP!
Re: What am i doing wrong here? -
Whizion - 15.11.2011
Please help, bumping again (second page).
Re: What am i doing wrong here? -
Scenario - 15.11.2011
Quit bumping your thread! Read the forum rules and grow up!
Re: What am i doing wrong here? -
Whizion - 16.11.2011
Tell that to the other X users in this sub-forum who are doing the same thing.
Once my thread hits the second page the likelihood of me getting any answers is zero to none.
So, BUMP.