• 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++] doPlayerOpenChannelsList(cid, list)! HELP Cyko, Elf

conde2

Active Member
Joined
Jun 22, 2008
Messages
348
Reaction score
44
I was trying to make a function that calls a channel dialog with new channels in a lua table like that.


PHP:
doPlayerOpenChannelsList(cid, {'Chat-Channel', 'Help', 'Channel Yeah'})

But i cant do it right i dont have good skills with C++
I'm having a problem cleaning the defult channels parsed by channels.xml and adding the new channels.
So thats my code:


Solved
 
Last edited:
BUMP

Please tell me how to turn lua table into c++ tables =/


In static member function 'static int32_t LuaInterface::luaDoPlayerOpenChannelList(lua_State*)':
2911 C:\luascript.cpp void value not ignored as it ought to be
2921 C:\luascript.cpp request for member 'end' in 'names', which is of non-class type 'int32_t'
2922 C:\luascript.cpp invalid types 'int32_t[int32_t]' for array subscript
2923C: \luascript.cpp no match for 'operator[]' in 'newList[(i + 256)]'
2926 C:\luascript.cpp no matching function for call to 'Player::sendChannelsDialogClean(ChannelList&)'
note C:\player.h:688 candidates are: void Player::sendChannelsDialogClean(uint16_t)
note C:\player.h:688 *** [obj//luascript.o] Error 1
 
Last edited:
Back
Top Bottom