SA-MP Forums Archive
Dialog Problem with CMD - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog Problem with CMD (/showthread.php?tid=443069)



Dialog Problem with CMD - yaron0600 - 10.06.2013

The CMD Doesnt work there ... Doesnt show nothing , Fix it please ?


The CMD :

Код:
CMD:boston(playerid, params[])
{
    if(PlayerInfo[playerid][pFMember] == 1)
 	{
  		if(IsPlayerInRangeOfPoint(playerid, 4.0, -517.86, 306.36, 909.53) && GetPlayerVirtualWorld(playerid) == 6065)
    	{
     		ShowPlayerDialog(playerid, DIALOG_BOSTONS, DIALOG_STYLE_LIST, "El Bostons Lockers", "Duty\nClothes", "Select", "Cancel");
      }
      	else
		{
  			SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of your El Bostons lockers.");
 		}
  	}
	return 1;
}
The Dialog :

Код:
		if(dialogid == DIALOG_BOSTONS)
	{
 		if(response)
		{
            if(listitem == 0) //  Duty
			{
				GivePlayerValidWeapon(playerid, 24, 1000);
				GivePlayerValidWeapon(playerid, 29, 1000);
				GivePlayerValidWeapon(playerid, 31, 500);
			    GivePlayerValidWeapon(playerid, 30, 500);
				GivePlayerValidWeapon(playerid, 25, 1000);
				GivePlayerValidWeapon(playerid, 33, 1000);
				SetPlayerHealth(playerid, 100.0);
				SetPlayerArmour(playerid, 100.0);
			}
			else if(listitem == 1) // Clothes
	        {
		    ShowPlayerDialog( playerid, 3495, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin Changes cost $2500.", "Buy", "Cancel" );
	        }
		}
	}



Re: Dialog Problem with CMD - Aly - 10.06.2013

Well are you sure you were in VW 6065?


Re: Dialog Problem with CMD - SilverKiller - 10.06.2013

Show us your DIALOG_BOSTONS define.


Re: Dialog Problem with CMD - yaron0600 - 10.06.2013

Код:
//BOSTONS
#define DIALOG_BOSTONS 2815



Re: Dialog Problem with CMD - yaron0600 - 10.06.2013

Then ? ? ? ?