• 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++] getPlayerStorageValue

Kahras

Member
Joined
Aug 6, 2012
Messages
101
Reaction score
7
Location
Warsaw
Chce zrobic channel - tylko by na nim pisac trzeba miec storage 1251, 1.


game.cpp:

Lua:
if(player->getStorage(1244, 1))
        player->sendCancel("Nie masz uprawnien by tutaj pisac.");
    else
        return g_chat.talkToChannel(player, type, text, channelId);

    return false;


ERRORY:

error: no matching function for call to 'Player::getStorage(int, int)'
note: candidates are: virtual bool Creature::getStorage(const std::string&, std::string&) const
 
No przeciez masz wyraznie napisane. Uzywasz intow jako parametrow, podczas gdy funkcja chce stringi.
 
Back
Top