19.05.2014, 04:38
DEFINES=
CMD=
DialogResponse=
I already did , change the Dialog name to Dialogid Still de Same
pawn Код:
#define RRMENU 10253
#define RRMENUWEP 10254
#define RRMENUSKIN 10255
pawn Код:
CMD:rapid(playerid, params[])
{
if(PlayerInfo[playerid][pFaction] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pFaction] == 17 || PlayerInfo[playerid][pLeader] == 17)
{
SetPVarInt(playerid, "dialog", RRMENU);
ShowPlayerDialogEx(playerid, RRMENU, DIALOG_STYLE_LIST, "Rapid Recovery","Rapid Uniforms\nRapid Equipment\nRefill Health($1000)\nKevlar Vest($1000)\nMechanic Job", "Select", "Cancel");
}
return 1;
}
pawn Код:
else if(dialogid == 10253)
{
if(response) switch(listitem)
{
case 0: // CAL Uniforms
{
SetPVarInt(playerid, "dialog", RRMENU);
ShowPlayerDialog(playerid, RRMENUSKIN, DIALOG_STYLE_LIST, "Rapid Skins", "Mechanic\nMechanic 2\nMechanic 3", "Select", "Cancel");
}
case 1: // CAL Weapons
{
SetPVarInt(playerid, "dialog", RRMENU);
ShowPlayerDialog(playerid, RRMENUWEP, DIALOG_STYLE_LIST, "Rapid Equipment","Shovel\nFire Extinguisher\nCamera", "Purchase", "Cancel");
}
case 2: // NG Heal
{
SetPlayerHealth(playerid, 100);
}
case 3:
{
SetPlayerArmour(playerid, 100);
}
case 4: // Mechanic
{
SetPVarInt(playerid, "dialog", RRMENU);
ShowPlayerDialog(playerid, 7485, DIALOG_STYLE_LIST, "Mechanic Job", "Job Slot 1\nJob Slot 2", "Proceed", "Cancel");
}
}
}
else if(dialogid == 10255)
{
if(response)
{
if(listitem == 0) // LSPD Uniforms
{
SetPlayerSkin(playerid, 50);
PlayerInfo[playerid][pSkin] = 50;
}
if(listitem == 1) //LSPD Uniforms
{
SetPlayerSkin(playerid, 8);
PlayerInfo[playerid][pSkin] = 8;
}
if(listitem == 2) // LSPD Uniforms
{
SetPlayerSkin(playerid, 42);
PlayerInfo[playerid][pSkin] = 42;
}
}
}
else if(dialogid == 10254)
{
if(response)
{
if(listitem == 0)
{
GivePlayerValidWeapon(playerid, 6, 1);
}
if(listitem == 1)
{
GivePlayerValidWeapon(playerid, 42, 999999);
}
if(listitem == 2)
{
GivePlayerValidWeapon(playerid, 43, 99999);
}
}
}
HELP ME THIS IS THE LAST PROBLEM THEN MY FACTION IS COMPLETE HELP PLEASE