Eroare Compilare Sursa Game

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
YTxMinato.
Nivel 6

Nivel 6
Mesaje: 1137
Membru din: 29 Noi 2013, 19:16
Server: Apollo
Regat: Jinno
Aprecieri: 511  
Mulţumiri: 271  
  Rezolvări prob.: 2
 Contact:
Medalii

*Problemă/Întrebare: Am adaugat sistemul asta si primesc eroare la compilare sursa game...
Tipologie server: PVM
*Resursă folosită: sursa/limita-yang-inventar-shop-trade-t ... 48341.html
*ServerFiles utilizat: Saga2
*Syserr:
In file included from battle.cpp:7:0:
battle.h: In function 'void AttackAffect(LPCHARACTER, LPCHARACTER, BYTE, DWORD, DWORD, BYTE, long int, DWORD, int, const char*)':
battle.h:43:26: error: could not convert 'pkAttacker->CHARACTER::GetPoint(((int)att_point))' from 'void' to 'bool'
if (pkAttacker->GetPoint(att_point) && !pkVictim->IsAffectFlag(affect_flag))
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
battle.h:45:22: error: invalid operands of types 'int' and 'void' to binary 'operator<='
if (number(1, 100) <= pkAttacker->GetPoint(att_point) && !pkVictim->IsImmune(immune_flag))
battle.h:51:127: error: invalid use of void expression
pkVictim->ChatPacket(CHAT_TYPE_PARTY, "%s %s(%ld%%) SUCCESS", pkAttacker->GetName(), name, pkAttacker->GetPoint(att_point));
^
battle.h:56:123: error: invalid use of void expression
pkVictim->ChatPacket(CHAT_TYPE_PARTY, "%s %s(%ld%%) FAIL", pkAttacker->GetName(), name, pkAttacker->GetPoint(att_point));
^
[OK] Compiling: buffer_manager.cpp
battle.cpp: In function 'int CalcMagicDamage(LPCHARACTER, LPCHARACTER)':
battle.cpp:218:7: error: invalid operands of types 'int' and 'void' to binary 'operator+'
iDam += pkAttacker->GetPoint(POINT_PARTY_ATTACKER_BONUS);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:218:57: error: in evaluation of 'operator+=(int, void)'
iDam += pkAttacker->GetPoint(POINT_PARTY_ATTACKER_BONUS);
^
battle.cpp: In function 'int CalcAttBonus(LPCHARACTER, LPCHARACTER, int)':
battle.cpp:277:18: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_ANIMAL)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:279:18: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_UNDEAD)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:281:18: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_DEVIL)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:283:18: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_HUMAN)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:285:18: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_ORC)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:287:18: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_MILGYO)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:289:18: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_INSECT)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:291:18: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_FIRE)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:293:18: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_ICE)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:295:18: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_DESERT)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:297:18: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_TREE)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:299:17: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_MONSTER)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:303:17: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_HUMAN)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:308:19: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_WARRIOR)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:312:19: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_ASSASSIN)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:316:19: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_SURA)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:320:19: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_SHAMAN)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:330:19: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_WARRIOR)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:334:19: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_ASSASSIN)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:338:19: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_SURA)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:342:19: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_SHAMAN)) / 100;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:353:23: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk -= (iAtk * 30 * pkVictim->GetPoint(POINT_RESIST_ELEC)) / 10000;
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:355:23: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk -= (iAtk * 30 * pkVictim->GetPoint(POINT_RESIST_FIRE)) / 10000;
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:357:23: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk -= (iAtk * 30 * pkVictim->GetPoint(POINT_RESIST_ICE)) / 10000;
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:359:23: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk -= (iAtk * 30 * pkVictim->GetPoint(POINT_RESIST_WIND)) / 10000;
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:361:23: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk -= (iAtk * 30 * pkVictim->GetPoint(POINT_RESIST_EARTH)) / 10000;
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:363:23: error: invalid operands of types 'int' and 'void' to binary 'operator*'
iAtk -= (iAtk * 30 * pkVictim->GetPoint(POINT_RESIST_DARK)) / 10000;
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp: In function 'int CalcMeleeDamage(LPCHARACTER, LPCHARACTER, bool, bool)':
battle.cpp:467:47: error: invalid operands of types 'void' and 'int' to binary 'operator+'
iAtk = pkAttacker->GetPoint(POINT_ATT_GRADE) + iDam - (pkAttacker->GetLevel() * 2);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
battle.cpp:480:7: error: invalid operands of types 'int' and 'void' to binary 'operator+'
iAtk += pkAttacker->GetPoint(POINT_PARTY_ATTACKER_BONUS); // party attacker role bonus
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:480:57: error: in evaluation of 'operator+=(int, void)'
iAtk += pkAttacker->GetPoint(POINT_PARTY_ATTACKER_BONUS); // party attacker role bonus
^
battle.cpp:481:69: error: invalid operands of types 'void' and 'void' to binary 'operator+'
iAtk = (int) (iAtk * (100 + (pkAttacker->GetPoint(POINT_ATT_BONUS) + pkAttacker->GetPoint(POINT_MELEE_MAGIC_ATT_BONUS_PER))) / 100);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:489:54: error: invalid operands of types 'int' and 'void' to binary 'operator+'
iDef = (pkVictim->GetPoint(POINT_DEF_GRADE) * (100 + pkVictim->GetPoint(POINT_DEF_BONUS)) / 100);
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:503:62: error: invalid operands of types 'void' and 'int' to binary 'operator-'
int DEBUG_iST = int((pkAttacker->GetPoint(POINT_ATT_GRADE) - DEBUG_iLV) * fAR);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
battle.cpp:504:66: error: void value not ignored as it ought to be
int DEBUG_iPT = pkAttacker->GetPoint(POINT_PARTY_ATTACKER_BONUS);
^
battle.cpp: In function 'int CalcArrowDamage(LPCHARACTER, LPCHARACTER, LPITEM, LPITEM, bool)':
battle.cpp:576:31: error: invalid operands of types 'int' and 'void' to binary 'operator-'
int iGap = (iDist / 100) - 5 - pkAttacker->GetPoint(POINT_BOW_DISTANCE);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:596:47: error: invalid operands of types 'void' and 'int' to binary 'operator+'
iAtk = pkAttacker->GetPoint(POINT_ATT_GRADE) + iDam - (pkAttacker->GetLevel() * 2);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
battle.cpp:603:7: error: invalid operands of types 'int' and 'void' to binary 'operator+'
iAtk += pkAttacker->GetPoint(POINT_PARTY_ATTACKER_BONUS);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:603:57: error: in evaluation of 'operator+=(int, void)'
iAtk += pkAttacker->GetPoint(POINT_PARTY_ATTACKER_BONUS);
^
battle.cpp:604:69: error: invalid operands of types 'void' and 'void' to binary 'operator+'
iAtk = (int) (iAtk * (100 + (pkAttacker->GetPoint(POINT_ATT_BONUS) + pkAttacker->GetPoint(POINT_MELEE_MAGIC_ATT_BONUS_PER))) / 100);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:611:54: error: invalid operands of types 'int' and 'void' to binary 'operator+'
iDef = (pkVictim->GetPoint(POINT_DEF_GRADE) * (100 + pkAttacker->GetPoint(POINT_DEF_BONUS)) / 100);
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp: In function 'void NormalAttackAffect(LPCHARACTER, LPCHARACTER)':
battle.cpp:639:26: error: could not convert 'pkAttacker->CHARACTER::GetPoint(37)' from 'void' to 'bool'
if (pkAttacker->GetPoint(POINT_POISON_PCT) && !pkVictim->IsAffectFlag(AFF_POISON))
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
battle.cpp:641:22: error: invalid operands of types 'int' and 'void' to binary 'operator<='
if (number(1, 100) <= pkAttacker->GetPoint(POINT_POISON_PCT))
battle.cpp:650:26: error: could not convert 'pkAttacker->CHARACTER::GetPoint(39)' from 'void' to 'bool'
if (pkAttacker->GetPoint(POINT_SLOW_PCT) && !pkVictim->IsAffectFlag(AFF_SLOW))
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
battle.cpp:652:22: error: invalid operands of types 'int' and 'void' to binary 'operator<='
if (number(1, 100) <= pkAttacker->GetPoint(POINT_SLOW_PCT) && !pkVictim->IsImmune(IMMUNE_SLOW))
battle.cpp: In function 'int battle_hit(LPCHARACTER, LPCHARACTER, int&)':
battle.cpp:681:24: error: invalid operands of types 'int' and 'void' to binary 'operator-'
iDam = iDam * (100 - pkVictim->GetPoint(POINT_RESIST_SWORD)) / 100;
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:685:24: error: invalid operands of types 'int' and 'void' to binary 'operator-'
iDam = iDam * (100 - pkVictim->GetPoint(POINT_RESIST_TWOHAND)) / 100;
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:689:24: error: invalid operands of types 'int' and 'void' to binary 'operator-'
iDam = iDam * (100 - pkVictim->GetPoint(POINT_RESIST_DAGGER)) / 100;
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:693:24: error: invalid operands of types 'int' and 'void' to binary 'operator-'
iDam = iDam * (100 - pkVictim->GetPoint(POINT_RESIST_BELL)) / 100;
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:697:24: error: invalid operands of types 'int' and 'void' to binary 'operator-'
iDam = iDam * (100 - pkVictim->GetPoint(POINT_RESIST_FAN)) / 100;
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp:701:24: error: invalid operands of types 'int' and 'void' to binary 'operator-'
iDam = iDam * (100 - pkVictim->GetPoint(POINT_RESIST_BOW)) / 100;
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
battle.cpp: In function 'DWORD GET_ATTACK_SPEED(LPCHARACTER)':
battle.cpp:740:56: error: invalid operands of types 'DWORD {aka unsigned int}' and 'void' to binary 'operator+'
DWORD real_speed = (ani_speed * 100) / (default_bonus + ch->GetPoint(POINT_ATT_SPEED) + riding_bonus);
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[OK] Compiling: building.cpp

Poză: -
*Detalii suplimentare: la prima aranjare a sistemului in game, primeam eroarea asta la client, si am zis sa rearanjez dupa alte sf unde e bagat deja sistemu limita yang si shop off great...
0217 22:20:07991 :: Unknown packet header: 100, last: 32 17
Metin2Apollo - Curand !
Ofer suport gratuit !
Skype : jota.games1998
Discord : P3P3#5351

Imagine
Afișează semnătura
Avatar utilizator
[Mafia83]
Membru Club

Membru Club
Mesaje: 777
Membru din: 24 Feb 2016, 20:32
Server: Metin2KGB
Regat: Jinno
Aprecieri: 279  
Mulţumiri: 2287  
Discord: Copiază ID
 Contact:
Medalii

Vad ca folosești svf lui White, nu-ți oferă support ?
Avatar utilizator
YTxMinato.
Nivel 6

Nivel 6
Mesaje: 1137
Membru din: 29 Noi 2013, 19:16
Server: Apollo
Regat: Jinno
Aprecieri: 511  
Mulţumiri: 271  
  Rezolvări prob.: 2
 Contact:
Medalii

Mafia83 scrie: ↑18 Feb 2022, 09:38 Vad ca folosești svf lui White, nu-ți oferă support ?
Se ofera suport doar la sistemele care sunt deja adaugate si la adaptarile lor...nu si la sistemele care vreau sa le adaug.
UP
Metin2Apollo - Curand !
Ofer suport gratuit !
Skype : jota.games1998
Discord : P3P3#5351

Imagine
Afișează semnătura
Avatar utilizator
[Mafia83]
Membru Club

Membru Club
Mesaje: 777
Membru din: 24 Feb 2016, 20:32
Server: Metin2KGB
Regat: Jinno
Aprecieri: 279  
Mulţumiri: 2287  
Discord: Copiază ID
 Contact:
Medalii

Ia și compara cu funcțiile din mega release.
Avatar utilizator
YTxMinato.
Nivel 6

Nivel 6
Mesaje: 1137
Membru din: 29 Noi 2013, 19:16
Server: Apollo
Regat: Jinno
Aprecieri: 511  
Mulţumiri: 271  
  Rezolvări prob.: 2
 Contact:
Medalii

Mafia83 scrie: ↑18 Feb 2022, 12:06 Ia și compara cu funcțiile din mega release.
O sa incerc si asta...
Metin2Apollo - Curand !
Ofer suport gratuit !
Skype : jota.games1998
Discord : P3P3#5351

Imagine
Afișează semnătura
Închis
Răspunsuri
3
Vizualizări
164
Răspunsuri
1
Vizualizări
213
Răspunsuri
4
Vizualizări
244
Răspunsuri
9
Vizualizări
640

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Google [Bot] și 53 vizitatori