Jump to content
  • 0

pm message


Natsu

Question

freya pack exw kai prospa8o na katalavo to error bori kapios na me help??

 

if(Config.PM_MESSAGE_ON_START)

{

CreatureSay np = new CreatureSay(2, Say2.HERO_VOICE,Config.PM_TEXT1,Config.PM_SERVER_NAME);

CreatureSay na = new CreatureSay(15, Say2.PARTYROOM_COMMANDER,activeChar.getName(),Config.PM_TEXT2);

activeChar.sendPacket(np);

activeChar.sendPacket(na);

}

 

if(Config.SERVER_TIME_ON_START) {

activeChar.sendMessage("SVR time is " + fmt.format(new Date(System.currentTimeMillis())));

}

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

a tora se epiasa, misa pragmata les. Ta ekanes import ta class ayta ? An sta kokinizei apo kato simenei oti den exoun ginei import.

 

To date thelei

 

import java.util.Date;

To creatureSay einai sto network an thimame kala tou l2jserver.

To fmt den iparxei san klasi, kati den exeis antigrapsei apo ton kodika pou peires.

Link to comment
Share on other sites

  • 0

Gia na katalabeis, pou den katalabeneis otan xrisimopoiis mia klasi prepei na tin kaneis import pano pano ston kodika. Otan grafeis CreatureSay prepei na kserei pou na psaksei na brei to creaturesay. Episis ekeino to fmt den mou miazei gia classi pou simenei oti exei oristei kapou apo ekei pou to pires alla den ta pires ola, ksexases merika.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...