Hi!
This is my code:
Code:
I have an array (player_name). It contains the player name of 3 players.
The problem is that when I try to print player_name[0], or player_name[2], I get this error message:
But it is possible to print player_name[1]!
And I can't understand why!
OK, I can use other methods to print these strings from an array.
If anyone can find the reason of this error, please post it! I'm interested
This is my code:
Code:
char player_name[3][11] = {{'x','x','P','l','a','y','e','r',' ','1',0}, {'x','x','P','l','a','y','e','r',' ','1',0}, {'x','x','P','l','a','y','e','r',' ','1',0}};
PrintXY(3, 3, player_name[0], TEXT_MODE_NORMAL, TEXT_COLOR_BLACK);
I have an array (player_name). It contains the player name of 3 players.
The problem is that when I try to print player_name[0], or player_name[2], I get this error message:
But it is possible to print player_name[1]!
And I can't understand why!
OK, I can use other methods to print these strings from an array.
If anyone can find the reason of this error, please post it! I'm interested