First, to enclose code for an if-condition, you have to use braces, not brackets:
if (x = 1) { // note { not (
somecode();
somemorecode();
} // note } not )
Second, if you use the character[] array, the character names have to be capitalised:
character[TAY].ID
and
character[GINNIE].ID
But the capitalised character names already represent the character number, so you could just as well do
if (player.ID == TAY) {
But as KhrisMUC already noted, the best way is this:
if (player == cTay) {
and
cTay.SetAsPlayer();
if (x = 1) { // note { not (
somecode();
somemorecode();
} // note } not )
Second, if you use the character[] array, the character names have to be capitalised:
character[TAY].ID
and
character[GINNIE].ID
But the capitalised character names already represent the character number, so you could just as well do
if (player.ID == TAY) {
But as KhrisMUC already noted, the best way is this:
if (player == cTay) {
and
cTay.SetAsPlayer();