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.
Pages: 1
Topic closed
I am trying to get the bot to say what I have put after the command (!cmd <Extra bits that I want it to say>) but The code is not working. (knowing me I missed something big). Thanks in advance.
case "say":
{
if (users.ContainsKey(m.GetInt(0)))
{
string message = m.GetString(1);
string username = users[m.GetInt(0)];
int pos2 = Array.IndexOf(owner, username);
string msg1 = message;
string[] arg = msg1.Split(' ');
switch (message)
{
#region AddAdmin
case "!test":
case ".addadmin":
case "#addadmin":
{
say(arg[1]);
}
break;
#endregion
}
}
}
break;
#endregion
Offline
Not sure why you have the switch there.
You can always make an array of symbols then do:
if (message.StartsWith(array + "command"))
{
}
Or something like that.
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
this is what I do:
case "say":
string[] cmd = m.GetString(1).Split(' ');
switch(cmd[0])
{
case ".cmd":
con.Send("say", "Argument 1: \"" + cmd[1] + "\"");
break;
}
Offline
Problem Fixed. Requesting thread lock.
Offline
Problem Fixed. Requesting thread lock.
done
proc's discorb stylish themes for forums/the game
꧁꧂L O V E & C O R N꧁꧂ ᘛ⁐̤ᕐᐷ
danke bluecloud thank u raphe [this section of my sig is dedicated to everything i've loved that's ever died]
?
Offline
Pages: 1
Topic closed
[ Started around 1734847732.124 - Generated in 0.070 seconds, 14 queries executed - Memory usage: 1.47 MiB (Peak: 1.61 MiB) ]