Cant use integer

Oct 23, 2012 at 4:54 AM

Hello when ever i try to call a function i set internally with a parameter of int. I get a failed to convert parameters in ClrFunction.cs. Also i tried using double instead of int and it works.

I dont know if i need to declare int as a type or what is goint on.

 

Heres what im doing

//Main.cs
engine.SetFunction("showDialog",new Func<string,int,string>(ShowDialog);

private string ShowDialog(string msg,int buttons)
{
  //Show Dialog
}

//Javascript.js
function main()
{
  showDialog("Hey",0);
}