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-08-12 11:42:57

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

[HELP] Team changing

It sees when they are red. But when they are green. It doesn't do anything...

                case "team":
                    {
                        Player p = PlayerData[m.GetInt(0)];
                        if(m.GetInt(1) == 1)
                        {
                            p.isPlaying = false;
                            isPlaying.Remove(p.ToString());
                            conn.Send("say", "Players have turned RED.");

                        }
                        if(m.GetInt(1) == 3)
                        {
                            p.isPlaying = true;
                            isPlaying.Add(p.ToString());
                            conn.Send("say", "Players have turned GREEN.");
                        }
                    }
                    break;

l141.gif

Offline

#2 2015-08-12 12:19:52

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: [HELP] Team changing

Have you debugged the team message and see if green really executes at all?

Offline

Wooted by: (2)
capasha1439378392529658

Board footer

Powered by FluxBB

[ Started around 1732460696.0333 - Generated in 0.028 seconds, 12 queries executed - Memory usage: 1.36 MiB (Peak: 1.44 MiB) ]