Log in

View Full Version : What's the difference between these?



Jason2gs
03-03-2007, 03:09 AM
Ok.

I'm fixing up my AutoResponder, but I need some help with a couple commands.

This one checks the ENTIRE chat box, but that's not what I want. I want it to do what InChat does, but I wanted different coords.

As you can see, it checks for the current player's nickname.


if(FindChatText(Players[CurrentPlayer].nick))then


This one SHOULD do the same thing (FindChatText uses it), except for the coords being changed to only check the name part of the last message.


if(FindText(x, y, Players[CurrentPlayer].nick, SmallChars, 20, 415, 106, 430))then


FindChatText uses SmallChars, so I know it's not that.

THe problem is... The one I'm wanting to use (the latter of the two) doesn't ignore my messages.

Smartzkid
03-03-2007, 04:08 AM
...you never said what the problem is...
I know what it is, but I doubt anyone else does...

Bobarkinator
03-03-2007, 04:56 AM
Yeah those work the same just look in different places.

Jason2gs
03-03-2007, 04:58 AM
Oops lol

That must be why it hasn't been answered yet :p

Jason2gs
03-03-2007, 04:59 AM
Yeah those work the same just look in different places.

They should work the same, but they don't.

Smartzkid
03-03-2007, 05:15 AM
What do they do that makes you say that? How can you tell that they aren't working the same?

Jason2gs
03-03-2007, 05:18 AM
Easy.

The first code ignores my messages, the second code doesn't.

Edit: I tested them.

Smartzkid
03-03-2007, 05:32 AM
Use the first code then? *confused*

Jason2gs
03-03-2007, 06:01 AM
If I use the first command, then if I even post one message into the chat box, I'll have to wait for all of my posts to be gone before it will answer again :(

Smartzkid
03-03-2007, 06:01 AM
Ohhh I see...*idea*...