I have a problem when it comes to calling classes, I want to use a variable to hold the class name and use the :: operator to call it.
Here is a snippet from my code:
PHP Code:
for ( temp.a = 0; temp.a < temp.getClasses.size(); temp.a++ )
{
temp.res;
this.join(temp.getClasses[temp.a]);
temp.res = battledata::start();
if (!temp.res)
{
return false;
}
}
return true;
^ That works, but this doesn't:
PHP Code:
for ( temp.a = 0; temp.a < temp.getClasses.size(); temp.a++ )
{
temp.res;
this.join(temp.getClasses[temp.a]);
temp.res = (@ temp.getClasses[temp.a])::start();
if (!temp.res)
{
return false;
}
}
return true;
Any ideas?