View Single Post
  #15  
Old 04-02-2007, 10:59 PM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally Posted by godofwarares View Post
PHP Code:
message(NULL); // NULL isn't a string...
message(""); // That'll work. "" is a string. Null won't work here. 
message(NULL); will work fine. "" is considered null as far as Graal is concerned, as is 0.

The following works fine:
HTML Code:
function onCreated()
{
  message("test");
  this.scheduleEvent(1, "hide", null);
}

function onHide()
{
  message(null);
}
It, however, won't work if you just assign this.chat. this.chat = null; would make the current object's chat "0"
Reply With Quote