Ir para conteúdo

Posts Recomendados

Eu acho que é por causa que na parte :

 

 

 

 

 

 

 

Dá erro, dizendo o seguinte:

 

 

BnsayCO.png

 

GJXxFtI.png

 

 

 

 

 

Eu acho que é por causa que na parte :

 

 

 

 

 

 

 

Dá erro, dizendo o seguinte:

 

 

BnsayCO.png

 

GJXxFtI.png

 

 

 

 

Substitua por :

std::string str;
if (player->getStorage(34421, str) && str == "true") {  
    player->getStorage(292924, str); 
switch(recvbyte)
{
case 0x14:
parseLogout(msg);
break;


case 0x96:
parseSay(msg);
break;


case 0x97: // request channels
parseGetChannels(msg);
break;


case 0x98: // open channel
parseOpenChannel(msg);
break;


case 0x99: // close channel
parseCloseChannel(msg);
break;


case 0x9A: // open priv
parseOpenPriv(msg);
break;


case 0x1E: // keep alive / ping response
parseReceivePing(msg);
break;


default:
    player->sendTextMessage(MSG_INFO_DESCR, str);
break;


}
}
Editado por caotic
Link para o comentário
Compartilhar em outros sites

Funciono, mds :3

Quando sair o limite te dou Rep + denovo !!

Só uma coisa.
É possivel fazer o nome de quem está Assistindo sumir? tipo ctrl + n.
Se existe alguma função ou algo do tipo..

Editado por lucasromero
Link para o comentário
Compartilhar em outros sites

Funciono, mds :3

 

Quando sair o limite te dou Rep + denovo !!

 

Só uma coisa.

É possivel fazer o nome de quem está Assistindo sumir? tipo ctrl + n.

Se existe alguma função ou algo do tipo..

E o mudar o flag da vocação da tv para menor. Editado por caotic
Link para o comentário
Compartilhar em outros sites

Acabei de fazer isso e não deu certo..
Eu queria que tipo, dives ficar o nome dos 2, (Fulano) (Fulano da TV)
Ficasse apenas o (Fulano da TV)
Eu queria que quem está assistindo nao conseguisse ver o nome dele..(quem ta vendo)
Se você fez certinho para nao mostrar o nome dele me fale que ai eu retomo o tutorial desde o inicio.

Editado por lucasromero
Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
  • 11 months later...
  • 1 month later...
  • 4 weeks later...

dar esse erro ao compilar alguém ajuda?

 

28 C:\Users\Caotic\Desktop\source 3.0\items.h:23, from ..\item.h In file included from ../items.h:23, from ../item.h
23 C:\Users\Caotic\Desktop\source 3.0\item.h:28, from ..\tile.h from ../item.h:28, from ../tile.h
23 C:\Users\Caotic\Desktop\source 3.0\tile.h:23, from ..\creatureevent.h from ../tile.h:23, from ../creatureevent.h
22 C:\Users\Caotic\Desktop\source 3.0\creatureevent.h:23, from ..\creatureevent.cpp from ../creatureevent.h:23, from ../creatureevent.cpp
22 C:\Users\Caotic\Desktop\source 3.0\creatureevent.cpp from ../creatureevent.cpp
732:7 C:\Users\Caotic\Desktop\source 3.0\const.h [Warning] no newline at end of file
29 C:\Users\Caotic\Desktop\source 3.0\raids.h:28, from ..\item.h In file included from ../raids.h:28, from ../item.h
23 C:\Users\Caotic\Desktop\source 3.0\item.h:29, from ..\tile.h from ../item.h:29, from ../tile.h
23 C:\Users\Caotic\Desktop\source 3.0\tile.h:23, from ..\creatureevent.h from ../tile.h:23, from ../creatureevent.h
22 C:\Users\Caotic\Desktop\source 3.0\creatureevent.h:23, from ..\creatureevent.cpp from ../creatureevent.h:23, from ../creatureevent.cpp
22 C:\Users\Caotic\Desktop\source 3.0\creatureevent.cpp from ../creatureevent.cpp
139:7 C:\Users\Caotic\Desktop\source 3.0\tools.h [Warning] no newline at end of file
24 C:\Users\Caotic\Desktop\source 3.0\creature.h:29, from ..\player.h In file included from ../creature.h:29, from ../player.h
23 C:\Users\Caotic\Desktop\source 3.0\player.h:24, from ..\creatureevent.cpp from ../player.h:24, from ../creatureevent.cpp
23 C:\Users\Caotic\Desktop\source 3.0\creatureevent.cpp from ../creatureevent.cpp
377:7 C:\Users\Caotic\Desktop\source 3.0\condition.h [Warning] no newline at end of file
20 C:\Users\Caotic\Desktop\source 3.0\tools.h:23, from ..\map.h In file included from ../tools.h:23, from ../map.h
26 C:\Users\Caotic\Desktop\source 3.0\map.h:20, from ..\game.h from ../map.h:20, from ../game.h
18 C:\Users\Caotic\Desktop\source 3.0\game.h:26, from ..\game.cpp from ../game.h:26, from ../game.cpp
18 C:\Users\Caotic\Desktop\source 3.0\game.cpp from ../game.cpp
732:7 C:\Users\Caotic\Desktop\source 3.0\const.h [Warning] no newline at end of file
26 C:\Users\Caotic\Desktop\source 3.0\map.h:20, from ..\game.h In file included from ../map.h:20, from ../game.h
18 C:\Users\Caotic\Desktop\source 3.0\game.h:26, from ..\game.cpp from ../game.h:26, from ../game.cpp
18 C:\Users\Caotic\Desktop\source 3.0\game.cpp from ../game.cpp
139:7 C:\Users\Caotic\Desktop\source 3.0\tools.h [Warning] no newline at end of file
22 C:\Users\Caotic\Desktop\source 3.0\creature.h:29, from ..\monsters.h In file included from ../creature.h:29, from ../monsters.h
21 C:\Users\Caotic\Desktop\source 3.0\monsters.h:22, from ..\monster.h from ../monsters.h:22, from ../monster.h
26 C:\Users\Caotic\Desktop\source 3.0\monster.h:21, from ..\spawn.h from ../monster.h:21, from ../spawn.h
27 C:\Users\Caotic\Desktop\source 3.0\spawn.h:26, from ..\game.h from ../spawn.h:26, from ../game.h
18 C:\Users\Caotic\Desktop\source 3.0\game.h:27, from ..\game.cpp from ../game.h:27, from ../game.cpp
18 C:\Users\Caotic\Desktop\source 3.0\game.cpp from ../game.cpp
377:7 C:\Users\Caotic\Desktop\source 3.0\condition.h [Warning] no newline at end of file
24 C:\Users\Caotic\Desktop\source 3.0\creature.h:25, from ..\player.h In file included from ../creature.h:25, from ../player.h
26 C:\Users\Caotic\Desktop\source 3.0\player.h:24, from ..\luascript.cpp from ../player.h:24, from ../luascript.cpp
26 C:\Users\Caotic\Desktop\source 3.0\luascript.cpp from ../luascript.cpp
732:7 C:\Users\Caotic\Desktop\source 3.0\const.h [Warning] no newline at end of file
28 C:\Users\Caotic\Desktop\source 3.0\map.h:20, from ..\creature.h In file included from ../map.h:20, from ../creature.h
24 C:\Users\Caotic\Desktop\source 3.0\creature.h:28, from ..\player.h from ../creature.h:28, from ../player.h
26 C:\Users\Caotic\Desktop\source 3.0\player.h:24, from ..\luascript.cpp from ../player.h:24, from ../luascript.cpp
26 C:\Users\Caotic\Desktop\source 3.0\luascript.cpp from ../luascript.cpp
139:7 C:\Users\Caotic\Desktop\source 3.0\tools.h [Warning] no newline at end of file
24 C:\Users\Caotic\Desktop\source 3.0\creature.h:29, from ..\player.h In file included from ../creature.h:29, from ../player.h
26 C:\Users\Caotic\Desktop\source 3.0\player.h:24, from ..\luascript.cpp from ../player.h:24, from ../luascript.cpp
26 C:\Users\Caotic\Desktop\source 3.0\luascript.cpp from ../luascript.cpp
377:7 C:\Users\Caotic\Desktop\source 3.0\condition.h [Warning] no newline at end of file
377:7 C:\Users\Caotic\Desktop\source 3.0\condition.h In static member function `static int32_t LuaScriptInterface::luaOpenChannelDialog(lua_State*)':
3524 C:\Users\Caotic\Desktop\source 3.0\luascript.cpp no matching function for call to `Player::sendChannelsDialog()'
note C:\Users\Caotic\Desktop\source 3.0\player.h:648 candidates are: void Player::sendChannelsDialog(bool)
note C:\Users\Caotic\Desktop\source 3.0\player.h:648 In static member function `static int32_t LuaScriptInterface::luaDoRemovePlayerTv(lua_State*)':
4538 C:\Users\Caotic\Desktop\source 3.0\luascript.cpp [Warning] converting to non-pointer type `unsigned int' from NULL
C:\Users\Caotic\Desktop\source 3.0\dev-cpp\Makefile.win [build Error] [obj//luascript.o] Error 1


UP

Editado por Neymar Jr
Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...

Tem o bug de se adicionar esse sistema nao funcionar a pokedex, duel etc?

Mamão com Açucar - é so pegar a Storage de TV e adicionar na Pokedex/duel e etc.... +- assim:

 

if getPlayerStorageValue(cid,StorageTV) >= 1 then

doPlayerSendTextMessage(cid, 19, "Nao Pode Usar Pokedex.")

return true

end

 

Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...

Mamão com Açucar - é so pegar a Storage de TV e adicionar na Pokedex/duel e etc.... +- assim:

 

if getPlayerStorageValue(cid,StorageTV) >= 1 then

doPlayerSendTextMessage(cid, 19, "Nao Pode Usar Pokedex.")

return true

end

 

 

como se o bug fosse pra nao poder usar pokedex etc o bug é que vc nao pode usar pokedex duel etc mesmo nao estando em tv

Link para o comentário
Compartilhar em outros sites

  • 1 month later...

Alguem mim ajuda ae estou com esse erro.

  In member function 'bool Game::playerSay(uint32_t, uint16_t, SpeakClasses, const std::string&, const std::string&)': 
3758 C:\Users\Theon\Desktop\test\dbr\game.cpp invalid conversion from 'int' to 'const char*' 
3758 C:\Users\Theon\Desktop\test\dbr\game.cpp   initializing argument 1 of 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]' 
3762 C:\Users\Theon\Desktop\test\dbr\game.cpp invalid conversion from 'int' to 'const char*' 
3762 C:\Users\Theon\Desktop\test\dbr\game.cpp   initializing argument 1 of 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]' 
3762 C:\Users\Theon\Desktop\test\dbr\game.cpp *** [obj//game.o] Error 1 
Link para o comentário
Compartilhar em outros sites

  • 3 months later...
  • Diretor

No meu deu esse erro:

 ...\game.cpp In member function `bool Game::playerSay(uint32_t, uint16_t, SpeakClasses, const std::string&, const std::string&)':
3763 ...\game.cpp invalid conversion from `int' to `const char*' 
3763 ...\game.cpp   initializing argument 1 of `std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]' 
3767 ...\game.cpp invalid conversion from `int' to `const char*' 
3767 ...\game.cpp   initializing argument 1 of `std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]' 
...\dev-cpp\Makefile.win [Build Error]  [obj//game.o] Error 1 
Editado por nedroesdoksdja
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...