(ZCMD)Dialog not showing up -
Nick_Phelps - 03.02.2013
Basically what happens is when i type my command IG /htflocker the dio wont show up, help you be appriciated

Command:
Код:
CMD:htflocker(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid, 7.0, 1089.7205, -317.7738, 73.9922, 0))
{
SendClientMessageEx(playerid, COLOR_GRAD2, " You are not at the Hilltop Gang Armory Room!");
return 1;
}
if(PlayerInfo[playerid][pLevel] >= 1)
{
ShowPlayerDialog(playerid, 841999, DIALOG_STYLE_LIST, "Hilltop Farmers Armory", "First Aid Kit\nKevlar Vest\nClothes Corner\nMech Job", "Select", "Cancel");
}
return 1;
}
Dialog:
Код:
if(dialogid == 841999) // Hilltop Locker
{
if(response) ShowPlayerDialog(playerid, 841999, DIALOG_STYLE_LIST, "Hilltop Farmers Armory", "First Aid Kit\nKevlar Vest\nClothes Corner\nMech Job", "Select", "Cancel");
{
if(listitem == 0)
{
new Float:health;
GetPlayerHealth(playerid, health);
new hpint = floatround( health, floatround_round );
if( hpint >= 100 )
{
SendClientMessageEx(playerid, COLOR_GREY, "You already have full health.");
return 1;
}
SetPlayerHealth(playerid, 100);
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You have used a first aid kit, you now have 100.0 HP.");
}
if(listitem == 1)
{
new Float:armour;
GetPlayerArmour(playerid, armour);
if(armour >= 100)
{
SendClientMessageEx(playerid, COLOR_GREY, "You already have full armor.");
return 1;
}
if(PlayerInfo[playerid][pLevel] >= 1)
{
if(GetPlayerCash(playerid) < 0)
{
SendClientMessageEx(playerid, COLOR_GREY,"You can't afford the $15000!");
return 1;
}
GivePlayerCash(playerid, -0);
SetPlayerArmour(playerid, 100);
SendClientMessageEx(playerid, COLOR_YELLOW, "Enjoy The Vest");
}
}
if(listitem == 2)
{
if(PlayerInfo[playerid][pLevel] >= 1)
{
ShowPlayerDialog( playerid, 3496, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin changes are free here.", "Wear", "Cancel" );
}
else
{
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You must be at least Silver VIP to access the clothes corner. In the clothes corner you can get ANY skin.");
}
}
if(listitem == 3)
{
if(PlayerInfo[playerid][pLevel] >= 1)
{
ShowPlayerDialog(playerid, 841990, DIALOG_STYLE_LIST, "VIP: Job Center", "Mechanic", "Proceed", "Cancel");
}
else
{
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You must be at least Silver VIP to access the job center.");
}
}
}
}
Dio of Job selections:
Код:
if(dialogid == 841990)
{
if(!response) return 1;
switch(listitem)
{
case 0: // Mechanic
{
SetPVarInt(playerid, "jobSelection", 1);
ShowPlayerDialog(playerid, 7485, DIALOG_STYLE_LIST, "VIP: Job Center", "Yes", "Proceed", "Cancel");
}
}
}
if(dialogid == 7485)
{
if(!response) return 1;
switch(listitem)
{
case 0:
{
PlayerInfo[playerid][pJob] = GetPVarInt(playerid, "jobSelection");
SendClientMessageEx(playerid, COLOR_YELLOW, "You have changed your first job!");
}
case 1:
{
PlayerInfo[playerid][pJob2] = GetPVarInt(playerid, "jobSelection");
SendClientMessageEx(playerid, COLOR_YELLOW, "You have changed your second job!");
}
}
}
Re: (ZCMD)Dialog not showing up -
SilverKiller - 03.02.2013
I think it is for the ID, because i searched on ****** and founded that the max dialog ID is 32767.
Re: (ZCMD)Dialog not showing up -
Zex Tan - 03.02.2013
ID problem
Re: (ZCMD)Dialog not showing up -
Goldino - 03.02.2013
Add this to the top of your script:
Код:
#define DIALOG_JOB_1 1337
#define DIALOG_JOB_SEL_2 1338
Change the Dialog thingy to this:
Код:
if(dialogid == DIALOG_JOB_1)
{
if(!response) return 1;
switch(listitem)
{
case 0: // Mechanic
{
SetPVarInt(playerid, "jobSelection", 1);
ShowPlayerDialog(playerid, 7485, DIALOG_STYLE_LIST, "VIP: Job Center", "Yes", "Proceed", "Cancel");
}
}
}
if(dialogid == DIALOG_JOB_SEL_2)
{
if(!response) return 1;
switch(listitem)
{
case 0:
{
PlayerInfo[playerid][pJob] = GetPVarInt(playerid, "jobSelection");
SendClientMessageEx(playerid, COLOR_YELLOW, "You have changed your first job!");
}
case 1:
{
PlayerInfo[playerid][pJob2] = GetPVarInt(playerid, "jobSelection");
SendClientMessageEx(playerid, COLOR_YELLOW, "You have changed your second job!");
}
}
}
And change your command to this:
Код:
CMD:htflocker(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid, 7.0, 1089.7205, -317.7738, 73.9922, 0))
{
SendClientMessageEx(playerid, COLOR_GRAD2, " You are not at the Hilltop Gang Armory Room!");
return 1;
}
if(PlayerInfo[playerid][pLevel] >= 1)
{
ShowPlayerDialog(playerid, DIALOG_JOB_1, DIALOG_STYLE_LIST, "Hilltop Farmers Armory", "First Aid Kit\nKevlar Vest\nClothes Corner\nMech Job", "Select", "Cancel");
}
return 1;
}
The went over the id limit. I changed it for you!
Hope I helped!