Returning Command with parameters (ZCMD)
#2

do a global variable:
pawn Код:
new ClickID[MAX_PLAYERS];

public OnPlayerClickPlayer(/*...*/)
{
ClickID[playerid] = clickedplayerid;
}

public OnDialogResponse(/*...*/);
{
switch(listitem)
{
     case 0:
     {
          if(ClickID[playerid] != INVALID_PLAYER_ID)
          {
               cmd_kick(playerid, ClickID[playerid]);
               ClickID[playerid] = INVALID_PLAYER_ID;
          }
Reply


Messages In This Thread
Returning Command with parameters (ZCMD) - by randomkid88 - 17.01.2011, 02:49
Re: Returning Command with parameters (ZCMD) - by *IsBack - 17.01.2011, 05:47
Re: Returning Command with parameters (ZCMD) - by randomkid88 - 17.01.2011, 15:14

Forum Jump:


Users browsing this thread: 1 Guest(s)