08.06.2013, 21:23
pawn Код:
#include <a_samp>
#define GetPlayerDialog(%0) AntiDialog[%0]
new AntiDialog[MAX_PLAYERS];
ShowPlayerDialogEx(playerid, dialogid, style, caption[], info[], button1[], button2[])
{
AntiDialog[playerid] = dialogid;
return ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Ejemplo1", cmdtext, true, 10) == 0)
{
//ShowPlayerDialogEx(playerid, dialogid, style, caption[], info[], button1[], button2[]);
return 1;
}
return 0;
}
(yo simplemente queria intentar hacer uno,pero en vez de eso me saliт un GetPlayerDialog D:..)