#define RRMENU 10253
#define RRMENUWEP 10254
#define RRMENUSKIN 10255
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;
}
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);
}
}
}
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); printf("DialogID == %d || PVar Dialog: %d", RRMENU, GetPVarInt(playerid, "dialog")); ShowPlayerDialogEx(playerid, RRMENU, DIALOG_STYLE_LIST, "Rapid Recovery","Rapid Uniforms\nRapid Equipment\nRefill Health($1000)\nKevlar Vest($1000)\nMechanic Job", "Select", "Cancel"); } return 1; }
if(GetPVarInt(playerid, "dialog") != dialogid) { // Confirm the dialogid matches what we have in the PVar format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly trying to spoof a dialog ID (%d).", GetPlayerNameEx(playerid), playerid, dialogid); ABroadCast(COLOR_YELLOW, string, 2); printf("Debug 2: DialogID == %d || PVar Dialog: %d", dialog, GetPVarInt(playerid, "dialog")); format(string, sizeof(string), "%s has possibly tried to spoof a dialog ID.", GetPlayerNameEx(playerid)); AddAutomatedFlag(playerid, string); format(string, sizeof(string), "%s has possibly tried to spoof a dialog ID (%d, %d).", GetPlayerNameEx(playerid), dialogid, response); Log("logs/crash.log", string); return 1; }
if(GetPVarInt(playerid, "dialog") != dialogid) { // Confirm the dialogid matches what we have in the PVar
format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly trying to spoof a dialog ID (%d).", GetPlayerNameEx(playerid), playerid, dialogid);
ABroadCast(COLOR_YELLOW, string, 2);
format(string, sizeof(string), "%s has possibly tried to spoof a dialog ID.", GetPlayerNameEx(playerid));
AddAutomatedFlag(playerid, string);
format(string, sizeof(string), "%s has possibly tried to spoof a dialog ID (%d, %d).", GetPlayerNameEx(playerid), dialogid, response);
Log("logs/crash.log", string);
return 1;
}
if(GetPVarInt(playerid, "dialog") != dialogid) { // Confirm the dialogid matches what we have in the PVar
format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly trying to spoof a dialog ID (%d).", GetPlayerNameEx(playerid), playerid, dialogid);
ABroadCast(COLOR_YELLOW, string, 2);
printf("Debug 2: DialogID == %d || PVar Dialog: %d", dialog, GetPVarInt(playerid, "dialog"));
format(string, sizeof(string), "%s has possibly tried to spoof a dialog ID.", GetPlayerNameEx(playerid));
AddAutomatedFlag(playerid, string);
format(string, sizeof(string), "%s has possibly tried to spoof a dialog ID (%d, %d).", GetPlayerNameEx(playerid), dialogid, response);
Log("logs/crash.log", string);
return 1;
}
else if(dialogid == 10253)
{
if(response) switch(listitem)
{
case 0: // CAL Uniforms
{
SetPVarInt(playerid, "dialog", RRMENU);
ShowPlayerDialogEx(playerid, RRMENUSKIN, DIALOG_STYLE_LIST, "Rapid Skins", "Mechanic\nMechanic 2\nMechanic 3", "Select", "Cancel");
}
case 1: // CAL Weapons
{
SetPVarInt(playerid, "dialog", RRMENU);
ShowPlayerDialogEx(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);
ShowPlayerDialogEx(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);
}
}
}
When i put your Code to my GM , Error comes
pawn Код:
C:\Users\pc\Desktop\Server\gamemodes\VGRP.pwn(6051 2) : error 017: undefined symbol "dialog" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |