Error with cancelSchedule Function

Results 1 to 4 of 4
  1. #1
    Zaytron is offline
    MemberRank
    Nov 2012 Join Date
    320Posts

    Error with cancelSchedule Function

    Title says it all.

    I'm getting error 'No such method' when I use

    "function cancelSchedule() {
    setupTask.cancel(true);
    }"

    In my Event.Js.


  2. #2
    Zaytron is offline
    MemberRank
    Nov 2012 Join Date
    320Posts

    Re: Error with cancelSchedule Function

    Helpppp

  3. #3
    Valued Member EndlessNetwork is offline
    MemberRank
    Nov 2013 Join Date
    139Posts

    Re: Error with cancelSchedule Function

    try import the class

  4. #4
    Zaytron is offline
    MemberRank
    Nov 2012 Join Date
    320Posts

    Re: Error with cancelSchedule Function

    Bump >

    Another question.
    Is this

    }
    public void setEventMap(int id){
    for (int i = 1; i <= ChannelServer.getAllInstances().size(); i++) {
    ChannelServer.getInstance(i).setEventMap(id);
    World.Broadcast.broadcastMessage(CWvsContext.serverNotice(6, "[EVENT] An Automated event has started!"));
    java.util.Date time = new java.util.Date();
    System.out.println("Event Started " + time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds() + " on " + id);
    }
    }

    &


    This
    public void setEventMap(int id){
    for (int i = 1; i <= ChannelServer.getAllInstances().size(); i++) {
    ChannelServer.getInstance(i).setEventMap(id);
    ChannelServer.getInstance(i).setServerMessage("An event has started! Click on Vicious to participate!");
    try {
    cserv.getWorldInterface().broadcastMessage("EVENT", MaplePacketCreator.serverNotice(6, "[EVENT] An event has started! Click on Vicious to participate!").getBytes());
    } catch (Exception e) {
    cserv.reconnectWorld();
    }
    java.util.Date time = new java.util.Date();
    System.out.println("Event Started " + time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds() + " on " + id);
    }
    }
    The same ?



Advertisement