Thread: Editing params
View Single Post
  #5  
Old 04-08-2007, 03:50 PM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
PHP Code:
this.doActionTest(5.66"heya!");
function 
onActionTest(moneyValuestring)
  echo (
inttemp.moneyValue SPC temp.string.substring(2) ); 
You can't put functions inside the parameters: They are more like a declaration of variables than anything else. Making functions act within the parameters is completely non-conformist and actually goes further to impair the concept of general coding in higher-level languages.

Put it this way: You can't act on the variables themselves because they do not have a name (yet). If anything, the result of that would be the variable name being the outcome of the function itself.
Reply With Quote