Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2015-04-05 19:11:51

soulrunner
Member
Joined: 2015-03-10
Posts: 185

[Help] Help for a scrub?

The bot enters fine but it doesn't do the !test command.
http://pastebin.com/cVJK2s76


l141.gif

Offline

#2 2015-04-05 19:20:48, last edited by Xfrogman43 (2015-04-05 19:25:58)

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Help] Help for a scrub?

I don't know what this is

if (string.Compare(command, "test") == 0)
                    {
                        say(username + " Hello.");
                    }

But just do

if(msg.Startswith("!test"))
{
say(username +  " Hello.");
}

Also instead of

Checkforillegalcrossthreadcalls = false

You SHOULD do:

Invoke(new EventHandler(delegate{
private void connect_but_Click(object sender, EventArgs e)
{
//code
}
});

Invoke(new EventHandler(delegate{
public void handlemsg(object sender, PlayerIOClient.Message m)
{
//code
}
});

//Your "say" has too much stuff in it (well too much stuff for me)
//The only stuff I use is msg. I guess you could use poss but I don't so...
//not sure why you have command = ""


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

#3 2015-04-05 19:32:33

soulrunner
Member
Joined: 2015-03-10
Posts: 185

Re: [Help] Help for a scrub?

Xfrogman43 wrote:

-Snip-

I'm following the tutorial posted by Jabatheblob1


l141.gif

Offline

#4 2015-04-05 19:48:49

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Help] Help for a scrub?

Then ask him?
Or just use mine because it should work.
Re watch the tutorials and make sure it is the same. You might have missed a little bit of ONE thing and that can mess it up.


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

#5 2015-04-05 21:02:37

soulrunner
Member
Joined: 2015-03-10
Posts: 185

Re: [Help] Help for a scrub?

Heh. Turns out that I had the 1, 0 in putted wrong. GG me. Thanks anyway Frog //forums.everybodyedits.com/img/smilies/smile


l141.gif

Offline

#6 2015-04-05 21:44:23

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Help] Help for a scrub?

No problem. Glad you found the problem ^^.


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

#7 2015-04-05 22:29:15

Processor
Member
Joined: 2015-02-15
Posts: 2,246

Re: [Help] Help for a scrub?

Problem solved. Topic closed.


I have never thought of programming for reputation and honor. What I have in my heart must come out. That is the reason why I code.

Offline

Processor1428269355491353

Board footer

Powered by FluxBB

[ Started around 1732812699.9474 - Generated in 0.044 seconds, 12 queries executed - Memory usage: 1.42 MiB (Peak: 1.53 MiB) ]