View Single Post
  #1  
Old 04-12-2007, 02:47 AM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
Class Calling Problem

Hey.

I'm trying to make a script that holds an array of class names, and i'm trying to call it like this:

PHP Code:
this.classes = {"control"}

for (
temp.curClassthis.classes)
{
     
this.join(temp.curClass);
     (@ 
temp.curClass)::start();

It simply doesn't work, because I get this error:

Quote:
Originally Posted by RC
error: missing semicolon at line 6: (@ temp.curClass)::start();
error: unexpected token: :: at line 6: (@ temp.curClass)::start();
I've had this problem before. Is there any way to call a class through this method?

I appreciate it in advance.

-Hikaru
__________________
What signature? I see no signature?
Reply With Quote