[Problemă]Costume weapon

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

Nivel 1
Mesaje: 110
Membru din: 07 Sep 2014, 10:25
Server: Frozen
Regat: Jinno
Aprecieri: 19  
Mulţumiri: 1  
Medalii

Salut am şi eu nişte errori la compilare sursă game, mai exact am băgat costum weapon şi îmi dă eroare.. şi nu`mi dau seama dacă este de la eşarfe şi dacă da ce aş putea face?

char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6424: error: expected primary-expression before ',' token
char_item.cpp:6426: error: expected `;' before 'static'
char_item.cpp:6427: error: 'vec_slots' was not declared in this scope
char_item.cpp:6422: warning: unused variable 'abSlot'
acce.cpp: In function 'void FN_remove_material(CItem**, DWORD, int, int)':
acce.cpp:87: warning: unused variable 'count'
acce.cpp: In function 'bool Acce_InformationInitialize()':
acce.cpp:943: warning: comparison between signed and unsigned integer expressions
cmd_general.cpp: In function 'void do_costume(CHARACTER*, const char*, int, int)':
cmd_general.cpp:2062: warning: unused variable 'bufferSize'
cmd_general.cpp:2068: warning: unused variable 'pHair'
cmd_general.cpp:2072: warning: unused variable 'pAcce'
cmd_general.cpp: At global scope:
cmd_general.cpp:2095: error: expected unqualified-id before 'if'
cmd_general.cpp:2021: warning: 'bool FN_hair_affect_string(CHARACTER*, char*, size_t)' defined but not used
gmake: *** [OBJDIR/cmd_general.o] Error 1
gmake: *** Waiting for unfinished jobs....
gmake: *** [OBJDIR/char_item.o] Error 1
Avatar utilizator
[Tupeu]
Membru de Elita

Membru de Elita
Mesaje: 4101
Membru din: 28 Oct 2015, 16:16
Aprecieri: 35  
Mulţumiri: 2304  
 Contact:
Medalii

Raven02 scrie:Salut am şi eu nişte errori la compilare sursă game, mai exact am băgat costum weapon şi îmi dă eroare.. şi nu`mi dau seama dacă este de la eşarfe şi dacă da ce aş putea face?

char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6424: error: expected primary-expression before ',' token
char_item.cpp:6426: error: expected `;' before 'static'
char_item.cpp:6427: error: 'vec_slots' was not declared in this scope
char_item.cpp:6422: warning: unused variable 'abSlot'
acce.cpp: In function 'void FN_remove_material(CItem**, DWORD, int, int)':
acce.cpp:87: warning: unused variable 'count'
acce.cpp: In function 'bool Acce_InformationInitialize()':
acce.cpp:943: warning: comparison between signed and unsigned integer expressions
cmd_general.cpp: In function 'void do_costume(CHARACTER*, const char*, int, int)':
cmd_general.cpp:2062: warning: unused variable 'bufferSize'
cmd_general.cpp:2068: warning: unused variable 'pHair'
cmd_general.cpp:2072: warning: unused variable 'pAcce'
cmd_general.cpp: At global scope:
cmd_general.cpp:2095: error: expected unqualified-id before 'if'
cmd_general.cpp:2021: warning: 'bool FN_hair_affect_string(CHARACTER*, char*, size_t)' defined but not used
gmake: *** [OBJDIR/cmd_general.o] Error 1
gmake: *** Waiting for unfinished jobs....
gmake: *** [OBJDIR/char_item.o] Error 1
Ia fisierele din nou fara modificarile facute si pune iar.
Sau vezi poate ai sters } de pe la sfarsitul vre-unei functii.
Cauta asta:

Cod: Selectaţi tot

void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)

si vezi la sfarsit daca are } .
Si ce ai la linia 2095 in cmd_general?
Avatar utilizator
Raven02
Nivel 1

Nivel 1
Mesaje: 110
Membru din: 07 Sep 2014, 10:25
Server: Frozen
Regat: Jinno
Aprecieri: 19  
Mulţumiri: 1  
Medalii

qTupeu scrie:
Raven02 scrie:Salut am şi eu nişte errori la compilare sursă game, mai exact am băgat costum weapon şi îmi dă eroare.. şi nu`mi dau seama dacă este de la eşarfe şi dacă da ce aş putea face?

char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6424: error: expected primary-expression before ',' token
char_item.cpp:6426: error: expected `;' before 'static'
char_item.cpp:6427: error: 'vec_slots' was not declared in this scope
char_item.cpp:6422: warning: unused variable 'abSlot'
acce.cpp: In function 'void FN_remove_material(CItem**, DWORD, int, int)':
acce.cpp:87: warning: unused variable 'count'
acce.cpp: In function 'bool Acce_InformationInitialize()':
acce.cpp:943: warning: comparison between signed and unsigned integer expressions
cmd_general.cpp: In function 'void do_costume(CHARACTER*, const char*, int, int)':
cmd_general.cpp:2062: warning: unused variable 'bufferSize'
cmd_general.cpp:2068: warning: unused variable 'pHair'
cmd_general.cpp:2072: warning: unused variable 'pAcce'
cmd_general.cpp: At global scope:
cmd_general.cpp:2095: error: expected unqualified-id before 'if'
cmd_general.cpp:2021: warning: 'bool FN_hair_affect_string(CHARACTER*, char*, size_t)' defined but not used
gmake: *** [OBJDIR/cmd_general.o] Error 1
gmake: *** Waiting for unfinished jobs....
gmake: *** [OBJDIR/char_item.o] Error 1
Ia fisierele din nou fara modificarile facute si pune iar.
Sau vezi poate ai sters } de pe la sfarsitul vre-unei functii.
Cauta asta:

Cod: Selectaţi tot

void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)

si vezi la sfarsit daca are } .
Si ce ai la linia 2095 in cmd_general?
Asta am:
if (pHair)
{
const char* itemName = pHair->GetName();
ch->ChatPacket(CHAT_TYPE_INFO, " HAIR : %s", itemName);

for (int i = 0; i < pHair->GetAttributeCount(); ++i)
{
const TPlayerItemAttribute& attr = pHair->GetAttribute(i);
if (0 < attr.bType)
{
snprintf(buf, bufferSize, FN_point_string(attr.bType), attr.sValue);
ch->ChatPacket(CHAT_TYPE_INFO, " %s", buf);
}
}

if (pHair->IsEquipped() && arg1[0] == 'h')
ch->UnequipItem(pHair);
}

PS:Am rezolvat cu eroare din char_item, a mai rămas asta:

cmd_general.cpp: In function 'void do_costume(CHARACTER*, const char*, int, int) ':
cmd_general.cpp:2062: warning: unused variable 'bufferSize'
cmd_general.cpp:2068: warning: unused variable 'pHair'
cmd_general.cpp:2072: warning: unused variable 'pAcce'
cmd_general.cpp: At global scope:
cmd_general.cpp:2095: error: expected unqualified-id before 'if'
cmd_general.cpp:2021: warning: 'bool FN_hair_affect_string(CHARACTER*, char*, si ze_t)' defined but not used
gmake: *** [OBJDIR/cmd_general.o] Error 1
gmake: *** Waiting for unfinished jobs....
Avatar utilizator
r_tw1x1
Membru Club

Membru Club
Mesaje: 2278
Membru din: 06 Mar 2015, 18:33
Server: Nirvana3
Regat: Jinno
Aprecieri: 228  
Mulţumiri: 3790  
  Rezolvări prob.: 1
Discord: Copiază ID
Medalii

Subiect inactiv. Arhivat!
Imagine
Imagine
Afișează semnătura
Închis
Răspunsuri
6
Vizualizări
821
Răspunsuri
4
Vizualizări
271
Răspunsuri
6
Vizualizări
690
Răspunsuri
3
Vizualizări
518

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

  • Informaţie
  • Cine este conectat

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