dialogs help
#8

Код:
stock PlayerName(playerid)
{
  new name[MAX_PLAYER_NAME];
  GetPlayerName(playerid, name, MAX_PLAYER_NAME);
  return name;
}
COMMAND:inevent(playerid, params[])
{
	for(new x=0; x< MAX_PLAYERS; x++) 
	{
	    if(Eventr[x]==1)
	    {
            new name[MAX_PLAYER_NAME],string[50];
            GetPlayerName(playerid, name, MAX_PLAYER_NAME);
			format(string, sizeof(string), "%s ", PlayerName(q));
			ShowPlayerDialog(playerid,dialogid,DIALOG_STYLE_LIST,"Player in Event",string,"Okay","Cancel");
	    }
	}
	return 1;
}
Not sure if works but test it
Reply


Messages In This Thread
dialogs help - by silverms - 04.03.2017, 17:44
Re: dialogs help - by Toroi - 04.03.2017, 18:01
Re: dialogs help - by silverms - 04.03.2017, 18:03
Re: dialogs help - by Toroi - 04.03.2017, 18:08
Re: dialogs help - by silverms - 04.03.2017, 18:17
Re: dialogs help - by Toroi - 04.03.2017, 18:39
Re: dialogs help - by silverms - 04.03.2017, 18:48
Re: dialogs help - by ThatFag - 04.03.2017, 19:18
Re: dialogs help - by JessThompson - 04.03.2017, 19:23
Re: dialogs help - by silverms - 04.03.2017, 19:30

Forum Jump:


Users browsing this thread: 1 Guest(s)