09-24-2012, 05:44 PM
Помогите пожалуйста, добавил код в quest.java, вернее взял с другой сборки
PHP код:
<?php
// Возвращает диалог lowlevel-quest.htm
public static String getLowLevelMsg(Player player, int lvlToStart)
{
String result = HtmCache.getInstance().getNotNull("lowlevel-quest.htm", player);
if (result != null && result.length() > 0)
{
return result.replace("%level%", String.valueOf(lvlToStart));
}
return DEFAULT_LOWLVL_MSG.replace("%level%", String.valueOf(lvlToStart));
}
// Возвращает диалог highlevel-quest.htm
public static String getHighLevelMsg(Player player, int level){
String result = HtmCache.getInstance().getNotNull("highlevel-quest.htm", player);
if (result != null && result.length() > 0)
{
return result.replace("%level%", String.valueOf(level));
}
return DEFAULT_HIGHLVL_MSG.replace("%level%", String.valueOf(level));
}
при компиляции выдает ошибку
PHP код:
<?php
[javac] D:\L2_Serv\myproject\l2t\trunk\java\l2p\gameserver\model\quest\Quest.java:859: error: cannot find symbol
[javac] String result = HtmCache.getInstance().getNotNull("lowlevel-quest.htm", player);
[javac] ^
[javac] symbol: variable HtmCache
[javac] location: class Quest
[javac] D:\L2_Serv\myproject\l2t\trunk\java\l2p\gameserver\model\quest\Quest.java:865: error: cannot find symbol
[javac] return DEFAULT_LOWLVL_MSG.replace("%level%", String.valueOf(lvlToStart));
[javac] ^
[javac] symbol: variable DEFAULT_LOWLVL_MSG
[javac] location: class Quest
[javac] D:\L2_Serv\myproject\l2t\trunk\java\l2p\gameserver\model\quest\Quest.java:872: error: cannot find symbol
[javac] String result = HtmCache.getInstance().getNotNull("highlevel-quest.htm", player);
[javac] ^
[javac] symbol: variable HtmCache
[javac] location: class Quest
[javac] D:\L2_Serv\myproject\l2t\trunk\java\l2p\gameserver\model\quest\Quest.java:878: error: cannot find symbol
[javac] return DEFAULT_HIGHLVL_MSG.replace("%level%", String.valueOf(level));
[javac] ^
[javac] symbol: variable DEFAULT_HIGHLVL_MSG
[javac] location: class Quest