A function definition does not allow numbers in the parameter list, you must have correct variable names between the parentheses. Example:

Code:
function click(int row,int col)
{
  sound("click.wav");
  string Text = panelGet(row,col);
  if(Text == "Buy") // toggle button between "Buy" and "Sell"
    panelSet(row,col,"Sell",0,0,0);
  else if(Text == "Sell")
    panelSet(row,col,"Buy",0,0,0);
  else if(Text == "Close All") // push button
    sellAllTrades();
  else if(Text == "Cancel")  // back to last saved state
    panelLoad("Log\\panel.csv");
}