if(... || ...) not work!!
Posted: Sat Mar 07, 2009 11:06 am
Hi at ALL,
if I write
if(strcmp(actors[i].name, "player") != 0 ){ //Ignore the player actor
but
if(strcmp(actors[i].name, "player") != 0 || strcmp(actors[i].name, "DRAW") != 0){ //Ignore the player actor and DRAW actor
not work.
Question: WHY?
where am I wrong?
I wish that the collision ignore the 2 ACTORS.
if collide with these 2, does not enter into "if(...||...)
Tnk1000 for help.
if I write
if(strcmp(actors[i].name, "player") != 0 ){ //Ignore the player actor
but
if(strcmp(actors[i].name, "player") != 0 || strcmp(actors[i].name, "DRAW") != 0){ //Ignore the player actor and DRAW actor
not work.
Question: WHY?
where am I wrong?
I wish that the collision ignore the 2 ACTORS.
if collide with these 2, does not enter into "if(...||...)
Tnk1000 for help.