Kompilacja A new function.

Status
Zamknięty.

misztrz440

Banned
Zbanowany
Dołączył
Grudzień 15, 2012
Posty
1032
Liczba reakcji
39
Siemano . Mam b??d przy kompilacji, bo chcia?em zrobi? takie co? jak "level" tylko, ?e "reborn". Zamiast dodawa? funkcje do skryptu chcia?em doda? to do xml jak jest to m.in zrobione z levelem i mglvl itp. W spells.cpp i spells.h doda?em wszystko na przyk?adzie "level", ale zauwa?y?em funkcje "getLevel", wi?c przeszed?em do luascript.cpp i luascript.h i te? doda?em funkjce "getReborn" na przyk?adzie "getLevel" i tutaj mam b??d :

[SQL]
/luascript.cpp: In static member function `static int32_t LuaScriptInterface::internalGetPlayerInfo(lua_State*, LuaScriptInterface::PlayerInfo_t)':
../luascript.cpp:2479: error: `PlayerInfoReb' was not declared in this scope
../luascript.cpp:2480: error: 'const class Player' has no member named 'getReborn'

../luascript.cpp: In static member function `static int32_t LuaScriptInterface::luaGetPlayerReborn(lua_State*)':
../luascript.cpp:2628: error: `PlayerInfoReborn' was not declared in this scope

make.exe: *** [obj-console//luascript.o] Error 1
[/SQL]

I czy musz? gdzie? jeszcze doda? co??(tzn w innych plikach source opr?cz tych 4 co wymieni?em)


Dziekiiiiii
 
Odp: A new function.

Przecie? masz wszystko wyja?nione w b??dzie :D
 
Odp: A new function.

Misiu m?j Ty. Jakbym nie sprawdza? to bym nie pisa?! Sprawdza?em i nie wiem co jest ?le. M?g?bym bro mi pom?c, bo jak nie to Cie zniszcze hihihihiihihhihihihihihi
 
Odp: A new function.

Brakuje Ci funkcji getReborn w klasie Player i elementu PlayerInfoReb w enumie PlayerInfo_t.
 
Odp: A new function.

Czekaj, bo ja nie za bardzo czaje w enums.h? JA TU NIE WIDZ? NIC i w jakiej klasie bo te? nie wiem jak to si? teges
 
Odp: A new function.

class Player = Player.h/cpp
enum PlayerInfo_t = luascript.h
 
Odp: A new function.

No jebane kurwy pornograficzne. Pododawa?em i wraz:
[SQL]./luascript.cpp: In static member function `static int32_t LuaScriptInterface::internalGetPlayerInfo(lua_State*, LuaScriptInterface::PlayerInfo_t)':
../luascript.cpp:2479: error: `PlayerInfoReborn' was not declared in this scope

../luascript.cpp: In static member function `static int32_t LuaScriptInterface::luaGetPlayerReborn(lua_State*)':
../luascript.cpp:2628: error: `PlayerInfoReborn' was not declared in this scope

make.exe: *** [obj-console//luascript.o] Error 1[/SQL]
Hehe

---------- Tre?? dodana o 20:47 ----------

Dobra jest tak my?la?em, ?e co? pojeba?em z nazwami tu da?em skr?t tam pe?n? nazw? i chuj.
Teraz mam w spells.cpp drobny b??d szukam....
[SQL]/spells.cpp: In member function `bool Spell::playerSpellCheck(Player*) const':
../spells.cpp:629: error: no matching function for call to `Player::sendCancelMessage(const char[22])'
../player.h:595: note: candidates are: void Player::sendCancelMessage(ReturnValue) const

../spells.cpp: In member function `virtual bool RuneSpell::configureEvent(xmlNode*)':
../spells.cpp:1737: error: 'class ItemType' has no member named 'runeReb'
../spells.cpp:1738: error: 'class ItemType' has no member named 'runeReb'[/SQL]

---------- Tre?? dodana o 20:59 ----------

Po kombinowalem i nie wiem co z tym:
[SQL]./spells.cpp: In member function `virtual bool RuneSpell::configureEvent(xmlNode*)':
../spells.cpp:1737: error: 'class ItemType' has no member named 'runeReb'
../spells.cpp:1738: error: 'class ItemType' has no member named 'runeReb'[/SQL]

SR za spam
 
Odp: A new function.

Tutaj masztemat wed?ug niego dodaj, p??niej przer?b spell itp, chyba tak naj?atwiej, popraw pisownie w po?cie ;d
 
Odp: A new function.

Dzi?ki za to co da?e?, ale to jest tylko jak doda?, a ja przerabiam spell i tam nie ma nic o spell'ach, a ja mam problem ze spell.cpp. Ale + za aktywno??.

Po 2 nie mam czasu my?le? nad pisowni? wykonuj? 3000 rzeczy na raz, a m?j procesor mo?e tylko wykonywa? 2999,5 rzeczy na raz tak?e wiesz...
 
Status
Zamknięty.
Back
Do góry