Jump to content

c++ funcion pet


LoLZ

Mensajes recomendados

hola ke tal, tengo problema unicamente con esta funcion...

int pet_get_exp(lua_State* L)
{
LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();
CPetSystem* petSystem = ch->GetPetSystem();


if (0 == petSystem)
return 0;


lua_pushnumber(L, ch->GetPetExp());
return 1;
}
{ "get_exp", pet_get_exp },

Me sale como que no está declara... intente hacer un cambio para ver si lo tomaba y no deja. Cual puede ser el error?

 

tVrAWIf.png

 

Grax

Enlace para comentar
Compartir en otros sitios

hola ke tal, tengo problema unicamente con esta funcion...

int pet_get_exp(lua_State* L)
{
LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();
CPetSystem* petSystem = ch->GetPetSystem();


if (0 == petSystem)
return 0;


lua_pushnumber(L, ch->GetPetExp());
return 1;
}
{ "get_exp", pet_get_exp },

 

ch->GetPetExp() = CHARACTER::GetPetExp()

 

Debes declarar esa función en char.h

Enlace para comentar
Compartir en otros sitios

  • Dilong locked this tema
Guest
Este tema está cerrado a otras respuestas.
  • Recientemente navegando por este tema   0 miembros

    • No hay usuarios registrados visitando esta página.
×
×
  • Crear nuevo...