Quote:
|
Originally Posted by CheeToS2
It's easier to use .contains()
this.msg = "what npc";
this.findmsg = "npc";
if (this.msg.contains(this.findmsg)) {
// whatever
}
|
Ah-ha! So that DOES work... I guess I used (this.msg.contains() text) or something stupid.
Quote:
|
Originally Posted by ApothiX
Isn't that what I said? O_o
|
Yeah sorta. You said if (foo.pos("bar") >= 0) { }, with the foo.pos sorta confusing me. I just wanted to clarify.