I'm i know that hurt.SendChatMessage needs to change to server.Broadcast
but while I'm doing this I'm getting that error dunno why
[code] public static List<ulong> Godlist = new List<ulong>();
string Msg(string msg, string SteamId = null) => lang.GetMessage(msg, this, SteamId);
#endregion
#region [CHAT COMMANDS]
[ChatCommand("help")]
void helpCommand(PlayerSession session, string command, string[] args)
{
hurt.SendChatMessage, null,(session, Msg("Help1"));
hurt.SendChatMessage, null,(session, Msg("Help2"));
return;
}
[ChatCommand("tphelp")]
void tphelpCommand(PlayerSession session, string command, string[] args)
{
hurt.SendChatMassage, null,(session, Msg("tphelp"));
return;
}
[ChatCommand("stakeshelp")]
void stakeshelpCommand(PlayerSession session, string command, string[] args)
{
hurt.SendChatMessage, null,(session, Msg("stakeshelp"));
return;
}
[ChatCommand("homehelp")]
void homehelpCommand(PlayerSession session, string command, string[] args)
{
hurt.SendChatMessage, null,(session, Msg("homehelp"));
return;
}
}
}
#endregion[/code]
but i'm getting this erro dunno how to fix this
error CS1525: Unexpected symbol `)', expecting `;' or `}'
but while I'm doing this I'm getting that error dunno why
[code] public static List<ulong> Godlist = new List<ulong>();
string Msg(string msg, string SteamId = null) => lang.GetMessage(msg, this, SteamId);
#endregion
#region [CHAT COMMANDS]
[ChatCommand("help")]
void helpCommand(PlayerSession session, string command, string[] args)
{
hurt.SendChatMessage, null,(session, Msg("Help1"));
hurt.SendChatMessage, null,(session, Msg("Help2"));
return;
}
[ChatCommand("tphelp")]
void tphelpCommand(PlayerSession session, string command, string[] args)
{
hurt.SendChatMassage, null,(session, Msg("tphelp"));
return;
}
[ChatCommand("stakeshelp")]
void stakeshelpCommand(PlayerSession session, string command, string[] args)
{
hurt.SendChatMessage, null,(session, Msg("stakeshelp"));
return;
}
[ChatCommand("homehelp")]
void homehelpCommand(PlayerSession session, string command, string[] args)
{
hurt.SendChatMessage, null,(session, Msg("homehelp"));
return;
}
}
}
#endregion[/code]
but i'm getting this erro dunno how to fix this
error CS1525: Unexpected symbol `)', expecting `;' or `}'