View Single Post
  #1  
Old 06-04-2007, 11:03 AM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Function To Change Value

I feel as if I'm probably missing something asking this, but as anyone here ever made a function to set a new value to an old one?

I was trying to do something like:

NPC 1


PHP Code:
function onCreated() {
  
core this;
}

function 
setValue(oldValnewVal)
(@ 
oldVal) = (@ newVal); 
NPC 2

PHP Code:
function onCreated() {
  
this.on true;
  
this.on core.setValue(this.on, (this.on = !this.on));
  echo(
this.on);

Echoes nothing. >_>
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote