Quote:
Originally Posted by godofwarares
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"