Page 1 of 1

char not equalt to !=

PostPosted: Sun Oct 12, 2003 10:18 am
by jazz_e_bob
Is this the correct syntax? :oops:

if (collide.name != "sheild")
{
/* collide routine here */
}

PostPosted: Sun Oct 12, 2003 5:48 pm
by makslane
Use the C string manipulation:


Code: Select all
if (strcmp(collide.name, "sheild") != 0)
{
/* collide routine here */
}

PostPosted: Sun Oct 12, 2003 7:39 pm
by jazz_e_bob
Thanks again Makslane. :)