Quote:
Originally Posted by Tweety.4Girls
Code:
if (Cmd[0] == "/weather")
{
byte Weather = 0x1;
if (Cmd[1] == "n")
Weather = 0x1;
if (Cmd[1] == "rain")
Weather = 0x2;
if (Cmd[1] == "snow")
Weather = 0x3;
if (Cmd[1] == "rw")
Weather = 0x4;
if (Cmd[1] == "al")
Weather = 0x5;
if (Cmd[1] == "cb")
Weather = 0x7;
if (Cmd[1] == "cbw")
Weather = 0x8;
if (Cmd[1] == "bc")
Weather = 0x9;
if (Cmd[1] == "atoms")
Weather = 0xa;
// COPacket Packets.Weather(byte Type, uint Intensity, uint Direction, uint Appearance)
GC.AddSend(Packets.Weather(Weather, uint.Parse(Cmd[2]), uint.Parse(Cmd[3]), uint.Parse(Cmd[4])));
}
}
I got error at
|
Wow. That looks familiar. That's my code =o
... or looks like my code It's been modified... wrong.
It should be like this:
/weather [Type] [Direction] [Intensity]
And in that picture, if you're getting yellow lines then it's the client.
Good luck.