I tried like this:Quote:
public static bool PmandGMCommand(Main.GameClient GC, string[] Msg)
{
string[] Cmd = Message.Split(' ');
Message is undeclared you're using Msg in your bool... :rolleyes:
Code:
public static bool PmandGMCommand(Main.GameClient GC, string[] Msg)
{
if (GC.AuthInfo.Status != "[GM]" && GC.AuthInfo.Status != "[PM]") return false;
string[] Cmd = Msg;
switch (Msg[0])
{
case "/reborn":
{
GC.MyChar.Reborns = byte.Parse(Cmd[1]);
return true;
}
Code:
'NewestCOServer.PacketHandling.Chat.PmandGMCommand(NewestCOServer.Main.GameClient, string[])': not all code paths return a value