View Single Post
  #5  
Old 12-14-2001, 11:55 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
at the moment there is no way to use parameters with functions
the () are just used to say, that a function is called...
but functions in gscript accept every variable that was set in the NPC so u can just use this.test if u set it somewhere else in the whole code like

if(playerenters){
this.test=5;
showtext();
}

function showtext() {
message The Number is #v(this.test);
}
__________________
No Webhost at the moment
Reply With Quote