01.04.2013, 03:08
I am having a bunch of trouble with this one.
I am creating a dialog that will display all of the server commands, but I want to be able to click the command in the dialog_list and it executes that command. Is there anyway I can detour it or something back to the original command?
Example:
CMD:Health
{
SetPlayerHealth(playerid, 100);
}
-------------- Down to Dialog REsponse
if(listitem == 0) //the heal command in a dialog windo
{
//redirect or something to CMD:Health
return 1;
}
Hopefully you guys can understand what I am trying to do here.
I am creating a dialog that will display all of the server commands, but I want to be able to click the command in the dialog_list and it executes that command. Is there anyway I can detour it or something back to the original command?
Example:
CMD:Health
{
SetPlayerHealth(playerid, 100);
}
-------------- Down to Dialog REsponse
if(listitem == 0) //the heal command in a dialog windo
{
//redirect or something to CMD:Health
return 1;
}
Hopefully you guys can understand what I am trying to do here.