Command doesn't show the dialog
#2

Add this on top of gamemode
#define DIALOG_RICHLIST 3133

then OnPlayerCommandText
Код:
if (strcmp(cmdtext, "/richlist") == 0)
	{
	        new sendername[MAX_PLAYER_NAME], string[128];
        	for(new i = 0; i<MAX_PLAYERS; i++)
         	{
                	if(GetPlayerMoney(i) >= 25000000)
                	{
                	GetPlayerName(i, sendername, sizeof(sendername));
                	format(string, sizeof(string), "%s Cash: %d\n", sendername, GetPlayerMoney(i));
                	ShowPlayerDialog(playerid, DIALOG_RICHLIST, DIALOG_STYLE_MSGBOX, "Rich Players", string, "Close" "");
                	}
 			}
   	return 1;
   	}
Give it a Try
Reply


Messages In This Thread
Command doesn't show the dialog - by Stoyanov - 02.11.2014, 16:44
Re: Command doesn't show the dialog - by Adarsh007 - 02.11.2014, 16:56
Re: Command doesn't show the dialog - by Stoyanov - 02.11.2014, 17:27
Re: Command doesn't show the dialog - by GGRoleplay - 02.11.2014, 17:28
Re: Command doesn't show the dialog - by Stoyanov - 02.11.2014, 18:20
Re: Command doesn't show the dialog - by GGRoleplay - 02.11.2014, 20:54
Re: Command doesn't show the dialog - by M0HAMMAD - 02.11.2014, 21:08
Re: Command doesn't show the dialog - by Capua - 02.11.2014, 21:08
Re: Command doesn't show the dialog - by Stoyanov - 03.11.2014, 12:30
Re: Command doesn't show the dialog - by Stoyanov - 03.11.2014, 16:32

Forum Jump:


Users browsing this thread: 1 Guest(s)