Include editing question ?
#5

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by [HiC
TheKiller [Stuntp.com] ]
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
  OnDR(playerid, dialogid, response, listitem, inputtext[]);
  return 1;
}

stock OnDR(playerid, dialogid, response, listitem, inputtext[])
{
 
  return 1;
}
That will give you an error (error 029: invalid expression, assumed zero).

Correct:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
  OnDR(playerid, dialogid, response, listitem, inputtext);
  return 1;
}

stock OnDR(playerid, dialogid, response, listitem, inputtext[])
{
  return 1;
}
But you can just do this:
pawn Код:
#define OnDR OnDialogResponse
thanks Don Correlli
it seems yours is better .
but i want that all only because using npc callbacks with samp_a.inc...
that's why i'm asking how to change the name, yes just because that conflict.
but i think both ways not work for this propose ...

Reply


Messages In This Thread
Include editing question ? - by Mina - 24.04.2010, 11:00
Re: Include editing question ? - by [HiC]TheKiller - 24.04.2010, 11:06
Re: Include editing question ? - by Mina - 24.04.2010, 16:14
Re: Include editing question ? - by Correlli - 24.04.2010, 16:16
Re: Include editing question ? - by Mina - 24.04.2010, 16:23

Forum Jump:


Users browsing this thread: 1 Guest(s)