|
Архив - только для чтения |
Модератор форума: andycrowz |
Форум Корзина форума Корзина PvPRank (Траблы) |
PvPRank |
Dimitro в чем может быть проблема с этой строкой
Code error c2059 синтаксическая ошибка строка Code PLAYER_TITLE_FIELD_MARSHAL | PLAYER_TITLE_GRAND_MARSHAL") Добавлено (03.10.2012, 23:08) |
Stormtrooper,
Quote (Funtomas) error c2059 синтаксическая ошибка строка читать не умеем? вот кусок патча Code #define PLAYER_TITLE_MASK_ALLIANCE_PVP \ ("PLAYER_TITLE_PRIVATE | PLAYER_TITLE_CORPORAL | \ PLAYER_TITLE_SERGEANT_A | PLAYER_TITLE_MASTER_SERGEANT | \ PLAYER_TITLE_SERGEANT MAJOR | PLAYER_TITLE_KNIGHT | \ PLAYER_TITLE_KNIGHT_LIEUTENANT | PLAYER_TITLE_KNIGHT_CAPTAIN | \ PLAYER_TITLE_KNIGHT_CHAMPION | PLAYER_TITLE_LIEUTENANT_COMMANDER | \ PLAYER_TITLE_COMMANDER | PLAYER_TITLE_MARSHAL | \ PLAYER_TITLE_FIELD_MARSHAL | PLAYER_TITLE_GRAND_MARSHAL") <---- матерится компилятор на эту строку #define PLAYER_TITLE_MASK_HORDE_PVP \ ("PLAYER_TITLE_SCOUT | PLAYER_TITLE_GRUNT | \ PLAYER_TITLE_SERGEANT_H | PLAYER_TITLE_SENIOR_SERGEANT | \ PLAYER_TITLE_FIRST_SERGEANT | PLAYER_TITLE_STONE_GUARD | \ PLAYER_TITLE_BLOOD_GUARD | PLAYER_TITLE_LEGIONNAIRE | \ PLAYER_TITLE_CENTURION | PLAYER_TITLE_CHAMPION | \ PLAYER_TITLE_LIEUTENANT_GENERAL | PLAYER_TITLE_GENERAL | \ PLAYER_TITLE_WARLORD | PLAYER_TITLE_HIGH_WARLORD")
Сообщение # 3 написано 04.10.2012 в 14:05
|
Кавычки убери в обоих дефайнах
Code #define PLAYER_TITLE_MASK_ALLIANCE_PVP \ (PLAYER_TITLE_PRIVATE | PLAYER_TITLE_CORPORAL | \ PLAYER_TITLE_SERGEANT_A | PLAYER_TITLE_MASTER_SERGEANT | \ PLAYER_TITLE_SERGEANT MAJOR | PLAYER_TITLE_KNIGHT | \ PLAYER_TITLE_KNIGHT_LIEUTENANT | PLAYER_TITLE_KNIGHT_CAPTAIN | \ PLAYER_TITLE_KNIGHT_CHAMPION | PLAYER_TITLE_LIEUTENANT_COMMANDER | \ PLAYER_TITLE_COMMANDER | PLAYER_TITLE_MARSHAL | \ PLAYER_TITLE_FIELD_MARSHAL | PLAYER_TITLE_GRAND_MARSHAL) <---- матерится компилятор на эту строку #define PLAYER_TITLE_MASK_HORDE_PVP \ (PLAYER_TITLE_SCOUT | PLAYER_TITLE_GRUNT | \ PLAYER_TITLE_SERGEANT_H | PLAYER_TITLE_SENIOR_SERGEANT | \ PLAYER_TITLE_FIRST_SERGEANT | PLAYER_TITLE_STONE_GUARD | \ PLAYER_TITLE_BLOOD_GUARD | PLAYER_TITLE_LEGIONNAIRE | \ PLAYER_TITLE_CENTURION | PLAYER_TITLE_CHAMPION | \ PLAYER_TITLE_LIEUTENANT_GENERAL | PLAYER_TITLE_GENERAL | \ PLAYER_TITLE_WARLORD | PLAYER_TITLE_HIGH_WARLORD)
Если помог, ставь плюсик в репу :)
|
Вот кусок патча который стоит у меня - никаких проблем нет
Code diff -Nuar oregoncore-current/src/game/Player.h oregoncore-pq/src/game/Player.h --- oregoncore-current/src/game/Player.h 2010-11-23 08:16:46.000000000 -0500 +++ oregoncore-pq/src/game/Player.h 2010-11-23 18:20:07.000000000 -0500 @@ -369,6 +369,27 @@ PLAYER_UNK = 0x00040000, // 2.0.8... }; +#define PLAYER_TITLE_MASK_ALLIANCE_PVP \ + ( PLAYER_TITLE_PRIVATE | PLAYER_TITLE_CORPORAL | \ + PLAYER_TITLE_SERGEANT_A | PLAYER_TITLE_MASTER_SERGEANT | \ + PLAYER_TITLE_SERGEANT_MAJOR | PLAYER_TITLE_KNIGHT | \ + PLAYER_TITLE_KNIGHT_LIEUTENANT | PLAYER_TITLE_KNIGHT_CAPTAIN | \ + PLAYER_TITLE_KNIGHT_CHAMPION | PLAYER_TITLE_LIEUTENANT_COMMANDER | \ + PLAYER_TITLE_COMMANDER | PLAYER_TITLE_MARSHAL | \ + PLAYER_TITLE_FIELD_MARSHAL | PLAYER_TITLE_GRAND_MARSHAL ) + +#define PLAYER_TITLE_MASK_HORDE_PVP \ + ( PLAYER_TITLE_SCOUT | PLAYER_TITLE_GRUNT | \ + PLAYER_TITLE_SERGEANT_H | PLAYER_TITLE_SENIOR_SERGEANT | \ + PLAYER_TITLE_FIRST_SERGEANT | PLAYER_TITLE_STONE_GUARD | \ + PLAYER_TITLE_BLOOD_GUARD | PLAYER_TITLE_LEGIONNAIRE | \ + PLAYER_TITLE_CENTURION | PLAYER_TITLE_CHAMPION | \ + PLAYER_TITLE_LIEUTENANT_GENERAL | PLAYER_TITLE_GENERAL | \ + PLAYER_TITLE_WARLORD | PLAYER_TITLE_HIGH_WARLORD ) + +#define PLAYER_TITLE_MASK_ALL_PVP \ + ( PLAYER_TITLE_MASK_ALLIANCE_PVP | PLAYER_TITLE_MASK_HORDE_PVP ) + // used for PLAYER__FIELD_KNOWN_TITLES field (uint64), (1<<bit_index) without (-1) // can't use enum for uint64 values #define PLAYER_TITLE_DISABLED UI64LIT(0x0000000000000000)
Если помог, ставь плюсик в репу :)
Сообщение # 10 написано 04.10.2012 в 16:46
|
| |||
| |||