View Single Post
  #8  
Old 06-16-2007, 08:52 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
Quote:
Originally Posted by Inverness View Post
You seem to think varname.varname always means its an object, it doesn't, Graal is just compensating for bad scripting and that GS1 crap.

Personally I wish there was a serveroption to remove all GS1 compatibility, it would maybe stop some people from spewing crap like "GS1 is more logical like GS2", wtf?
Sorry i had remembered wrongly, checking my thread, it's the array that has to be TStaticVar.

Quote:
Originally Posted by Me in the other thread View Post
I figured it out.

For an array to store objects it must be a TStaticVar;

PHP Code:
channel = new TStaticVar();
channel.join("chat_channel");
channel.create(topicownerchannelname);

//Doesnt work: 
test.add(channel);
echo(
test[0].channelname); 


//works:
test2 = new TStaticVar();
test2.add(channel);
echo(
test2[0].channelname); 
__________________

Coming soon (Hopefully:P)
Reply With Quote