Thanks, WIll do so.
Merged postIs the compiler saying that the error is on line 35?
If so my code ends at 32.
Error while compiling: newwhere.cs(35,4): error CS1525: Unexpected symbol `}'
I removed all of the extra comment crap to condense.
I really cant find the error and would appreciate another set of eyes.
using Oxide.Core.Libraries.Covalence;
using Oxide.Game.Rust.Libraries;
namespace Oxide.Plugins
{
[Info("New Where", "PEBKAC Error", "1.0")]
[Description("Same as whereami except that Covalence / IPlayer is used")]
public class newwhere : CovalencePlugin
{
[Command("where")]
private void WhereCommand(IPlayer player, string command, string[] args)
{
int _State = 1;
System.Timers.Timer stateCheckTimer = new System.Timers.Timer();
stateCheckTimer.Interval = 1000; // TODO - set to desired interval (in ms)
stateCheckTimer.AutoReset = true;
stateCheckTimer.Elapsed += stateCheckTimer_Elapsed;
void stateCheckTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
if (_State == 1)
{
Puts("if statement");
}
}
}
}
}