Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Problema al hacer ObjectItem * Item;  (Visto 710 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline Daniel@ Posteado: January 23, 2019, 08:05:06 PM | Modificado: January 23, 2019, 08:06:43 PM by Daniel@

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 354
  • Gracias recibida: 2831
  • ve
ObjectItem * Item;

Intento crear una ObjectItem para usar

Item ->ItemID pero no se que me falta para hacerlo funcionar dentro de esta void

void Item::SetOptionText(int ItemID, int Line, WORD OptionID, bool Arg4, int Arg5){
ObjectItem * Item ;

if(Item ->ItemID == ITEM(X,X) && Item ->ExcellentOption==1){

}
}

Gracias:


Online YolaxD #1 Posteado: January 23, 2019, 08:39:22 PM

  • C++ Coder
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 540
  • Gracias recibida: 8079
  • ar
Seguramente tienes el puntero null , así que o le pasas la info del ítem o creas uno y lo configuras


Offline Daniel@ #2 Posteado: January 23, 2019, 08:50:36 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 354
  • Gracias recibida: 2831
  • ve
intento algo asi

ObjectItem *TheItem;
void Item::SetOptionText(int ItemID, int Line, WORD OptionID, bool Arg4, int Arg5)
{
   pSetItemOptionText(ItemID, Line, OptionID, Arg4, Arg5);
   // ----
   TheItem = (ObjectItem*) ItemID;

o como podria proceder?


Offline Daniel@ #3 Posteado: January 23, 2019, 09:03:04 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 354
  • Gracias recibida: 2831
  • ve
investigando mas encontre que nececito saber como optener esto

ObjectItem *TheItem;
void Item::SetOptionText(int ItemID, int Line, WORD OptionID, bool Arg4, int Arg5)
{
   pSetItemOptionText(ItemID, Line, OptionID, Arg4, Arg5);
   // ----
   TheItem = (ObjectItem*) XXXX <---- como lo genero;


Offline Daniel@ #4 Posteado: January 24, 2019, 01:54:52 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 354
  • Gracias recibida: 2831
  • ve

Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
2 Replies
1801 Views
Last post July 05, 2017, 10:27:19 PM
by chuvito
0 Replies
557 Views
Last post August 10, 2018, 10:20:22 AM
by afabasc
1 Replies
1865 Views
Last post June 12, 2020, 10:12:23 PM
by pain0708
7 Replies
935 Views
Last post July 13, 2020, 08:28:07 PM
by WazonxD
0 Replies
986 Views
Last post August 31, 2020, 12:07:03 PM
by ConejoMalo