• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

C++ pomoc

Saper1995

Technologic
Joined
Jul 11, 2009
Messages
104
Reaction score
3
Location
Poland
Witam ;] Potrzebuje pomocy w pewnym kodzie, który działa na zasadzie nadawania szybszego chodu po awansie skilla (Szybsze Chodzenie)
KOD :
Code:
uint32_t Player::getCreatureSpeed()
{
    uint32_t creaturespeed = vocation->getBaseSpeed();
    uint32_t skilll = getSkill(SKILL_FISH, SKILL_LEVEL);
    if(skilll > 150)
            skilll = 150;
    if(getCreatureSpeed() != 0)
            creaturespeed = getCreatureSpeed();
    return creaturespeed - (skilll * 20);
}


INFO BŁĘDU W LOGU KOMPILATORA :
Code:
../player.cpp:4119: error: no `uint32_t Player::getCreatureSpeed()' member function declared in class `Player'

../player.cpp: In member function `uint32_t Player::getCreatureSpeed()':
../player.cpp:4124: error: `getCreatureSpeed' was not declared in this scope
Niech profesjonaliści powiedzą co tu jest źle i proszę jeśli mogą to mnie poprawią. Dziękuje i Pozdrawiam !
 
Tzn. Gdzie znajdę te funkcję czy co dodać do player.h ?

@Edit - Przebuduj wszystko.
Lecz nic do nie dało bo wskazuje na ten sam błąd.
 
Last edited:
Back
Top