Array index out of bounds
#8

Thank you man, I wouldn't notice it without your help. By the way, the injuries look like this:
https://gyazo.com/cd9a0e82ba1cd39cb472a06a77f05d6d

But I have
Код:
string = "Weapon\tBody Part\tTimes Injured\n";
strcat(injuries, string);
before everything there. What's the problem?

EDIT: Wait nevermind, I could just do
Код:
strcat(injuries, "Weapon\tBody Part\tTimes Injured\n");
lol. I didn't think about that before.

EDIT 2: Still doesn't work though.

EDIT 3: Oh the problem was that I was showing player the "string", not the "injuries".
Reply


Messages In This Thread
Array index out of bounds - by GoldenLion - 11.10.2016, 14:17
Re: Array index out of bounds - by SyS - 11.10.2016, 14:31
Re: Array index out of bounds - by GoldenLion - 11.10.2016, 14:38
Re: Array index out of bounds - by oMa37 - 11.10.2016, 14:44
Re: Array index out of bounds - by SyS - 11.10.2016, 14:50
Re: Array index out of bounds - by GoldenLion - 11.10.2016, 14:54
Re: Array index out of bounds - by SyS - 11.10.2016, 14:56
Re: Array index out of bounds - by GoldenLion - 11.10.2016, 15:22
Re: Array index out of bounds - by SyS - 11.10.2016, 15:36

Forum Jump:


Users browsing this thread: 1 Guest(s)