Author Topic: What? Can't activate this fricking package?  (Read 547 times)

Code: (Torque) [Select]

package Whatever
{
function player::damage(%a, %b, %c, %d, %e, %f, %g)
{


messageAll('', "\c31:"@ %a @"<br>2:"@ %b @"<br>3:"@ %c @"<br>4:"@ %d @"<br>5:"@ %e @"<br>6:"@ %g @"<br>", 5);

parent::damage(%a, %b, %c, %d, %e, %g, %h);
    return;
}

function gameConnection::onDeath(%a, %b, %c, %d, %e, %g, %h)
{

messageAll('', "\c31:"@ %a @"<br>2:"@ %b @"<br>3:"@ %c @"<br>4:"@ %d @"<br>5:"@ %e @"<br>6:"@ %g @"<br>", 5);
parent::onDeath(%a, %b, %c, %d, %e, %g, %h);
    return;
}
}

activatePackage(Whatever);


It returns this error:

activatePackage(##W##hatever);

Are there supposed to be quotes?

Packages end with a };

All you had to do was look at any add-on that uses packages to figure that out - stop being so lazy.

Tom

I agree with Ephialtes.

And no "Stop trying to fit in".
You really need to try to look this stuff up yourself before coming here.

Code: (Torque) [Select]
messageAll('', "\c31:"@ %a @"<br>2:"@ %b @"<br>3:"@ %c @"<br>4:"@ %d @"<br>5:"@ %e @"<br>6:"@ %g @"<br>", 5);[/cpde]
[/quote]Just to let you know, message functions don't like it when you do this.

I did look at a current package, I thought the } I saw was the end of the package, didn't see it was a stand-out if statement.