Need help with a sitax error

Help
Tigersight
2007-07-08
2012-09-15
  • Tigersight

    Tigersight - 2007-07-08

    I put in: public @ onBulletMissed(BulletMissedEvent()); {

    It gave me the error: *** Syntax Error: "Type VariableDeclarators" inserted to complete LocalVariableDeclaration

    Does anyone know how to fix this?

     
    • Flemming N. Larsen

      I don't recognize "public @ onBulletMissed(BulletMissedEvent()); {" as being standard Java. What language are you using?

      In Java you'd write something like:

      public void onBulletMissed(BulletMissedEvent bulletMissedEvent) {
      // Do something on the bullet event
      Bullet bullet = bulletMissedEvent.getBullet();
      }

       

Log in to post a comment.