2 pwn related errors help!
#10

PHP код:
/*
     /$$   /$$  /$$$$$$          /$$$$$$$  /$$$$$$$
    | $$$ | $$ /$$__  $$        | $$__  $$| $$__  $$
    | $$$$| $$| $$  \__/        | $$  \ $$| $$  \ $$
    | $$ $$ $$| $$ /$$$$ /$$$$$$| $$$$$$$/| $$$$$$$/
    | $$  $$$$| $$|_  $$|______/| $$__  $$| $$____/
    | $$\  $$$| $$  \ $$        | $$  \ $$| $$
    | $$ \  $$|  $$$$$$/        | $$  | $$| $$
    |__/  \__/ \______/         |__/  |__/|__/
                        Backpack System
                Next Generation Gaming, LLC
    (created by Next Generation Gaming Development Team)
    * Copyright © 2016, Next Generation Gaming, LLC
    *
    * All rights reserved.
    *
    * Redistribution and use in source and binary forms, with or without modification,
    * are not permitted in any case.
    *
    *
    * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
    * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
    * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
    * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
    * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
    * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
    * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
    * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
    * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <YSI\y_hooks>
stock IsBackpackAvailable(playerid)
{
    
#if defined zombiemode
        
if(zombieevent == && GetPVarType(playerid"pIsZombie"))
            return 
0;
    
#endif
    
if(GetPVarType(playerid"PlayerCuffed") || GetPVarType(playerid"Injured") || GetPVarType(playerid"IsFrozen") || GetPVarInt(playerid"EMSAttempt") != || HungerPlayerInfo[playerid][hgInEvent] != || PlayerInfo[playerid][pHospital] > || PlayerInfo[playerid][pAccountRestricted] != 0)
        return 
0;
    if(
GetPVarType(playerid"IsInArena") || GetPVarIntplayerid"EventToken") != || IsPlayerInAnyVehicle(playerid) || GetPVarType(playerid"AttemptingLockPick") || GetPVarInt(playerid"WatchingTV") || PlayerInfo[playerid][pJailTime] > || !PlayerInfo[playerid][pBEquipped])
        return 
0;
    return 
1;
}
stock GetBackpackFreeSlotGun(playerid) {
    new 
slot;
    for(new 
611g++)
    {
        if(
PlayerInfo[playerid][pBItems][g] == 0)
        {
            
slot g;
            break;
        }
    }
    return 
slot;
}
ShowBackpackMenu(playeriddialogidextramsg[]) {
    new 
dgTitle[128],
        
string[15];
    
szMiscArray[0] = 0;
    if(!
IsBackpackAvailable(playerid)) {
        
DeletePVar(playerid"BackpackOpen"), DeletePVar(playerid"BackpackProt"), SendClientMessageEx(playeridCOLOR_GREY"You cannot use your backpack at this moment.");
        return 
1;
    }
    if(!
GetPVarType(playerid"BackpackOpen") || !GetPVarType(playerid"BackpackProt")) {
        
DeletePVar(playerid"BackpackOpen"), DeletePVar(playerid"BackpackProt"), SendClientMessageEx(playeridCOLOR_GREY"You cannot use your backpack at this moment.");
        return 
1;
    }
    
format(dgTitlesizeof(dgTitle), "%s Items %s"GetBackpackName(PlayerInfo[playerid][pBackpack]), extramsg);
    switch(
dialogid) {
        case 
DIALOG_OBACKPACK: {
            
format(szMiscArraysizeof(szMiscArray), "Food ({FFF94D}%d Meals{FFFFFF})\nNarcotics ({FFF94D}%d Grams{FFFFFF})\nGuns\nEnergy Bars ({FFF94D}%d Bars{FFFFFF})"PlayerInfo[playerid][pBItems][0], GetBackpackNarcoticsGrams(playerid), PlayerInfo[playerid][pBItems][11]);
            if(
PlayerInfo[playerid][pBItems][5] != && (IsACop(playerid) || IsAMedic(playerid) || IsAGovernment(playerid) || IsATowman(playerid))) format(szMiscArraysizeof(szMiscArray), "%s\nMedic & Kevlar Vest Kits ({FFF94D}%d{FFFFFF})",szMiscArrayPlayerInfo[playerid][pBItems][5]);
            
ShowPlayerDialogEx(playeridDIALOG_OBACKPACKDIALOG_STYLE_LISTdgTitleszMiscArray"Select""Cancel");
        }
        case 
DIALOG_BFOOD: {
            
ShowPlayerDialogEx(playeridDIALOG_BFOODDIALOG_STYLE_MSGBOXdgTitle"Are you sure you want to use this meal now?""Confirm""Cancel");
        }
        case 
DIALOG_BMEDKIT: {
            
ShowPlayerDialogEx(playeridDIALOG_BMEDKITDIALOG_STYLE_MSGBOXdgTitle"Are you sure you want to use this Medical & Kevlar Vest kit now?""Confirm""Cancel");
        }
        case 
DIALOG_BNARCOTICS: {
            for(new 
isizeof(Drugs); ++i) {
                
format(szMiscArraysizeof(szMiscArray), "%s%s({FFF94D}%d{A9C4E4} Grams)\n"szMiscArrayDrugs[i], PlayerInfo[playerid][pBDrugs][i]);
            }
            
ShowPlayerDialogEx(playeridDIALOG_BNARCOTICSDIALOG_STYLE_LISTdgTitleszMiscArray"Select""Cancel");
        }
        case 
DIALOG_BNARCOTICS2: {
            new 
pbi GetPVarInt(playerid"pbitemindex");
            
format(dgTitlesizeof(dgTitle), "{FFF94D}%d{A9C4E4} Grams of %s ({B20400}%d{A9C4E4} Total Grams)"PlayerInfo[playerid][pBDrugs][pbi], Drugs[pbi], GetBackpackNarcoticsGrams(playerid));
            
ShowPlayerDialogEx(playeridDIALOG_BNARCOTICS2DIALOG_STYLE_LISTdgTitle"Withdraw\nDeposit""Select""Cancel");
        }
        case 
DIALOG_BNARCOTICS3: {
            new 
pbi GetPVarInt(playerid"pbitemindex");
            
format(dgTitlesizeof(dgTitle), "{FFF94D}%d{A9C4E4} Grams of %s({B20400}%d{A9C4E4} Total Grams)\n"PlayerInfo[playerid][pBDrugs][pbi], Drugs[pbi], GetBackpackNarcoticsGrams(playerid));
            
format(szMiscArraysizeof(szMiscArray), "%s\nEnter the amount to %s                                                        "extramsg, (GetPVarInt(playerid"bnwd")) ? ("deposit") : ("withdraw"));
            
ShowPlayerDialogEx(playeridDIALOG_BNARCOTICS3DIALOG_STYLE_INPUTdgTitleszMiscArray"Select""Cancel");
        }
        case 
DIALOG_BGUNS: {
            new 
weapname[20], itemcount;
            for(new 
611i++)
            {
                if(
PlayerInfo[playerid][pBItems][i] > 0)
                {
                    
GetWeaponName(PlayerInfo[playerid][pBItems][i], weapnamesizeof(weapname));
                    
format(szMiscArraysizeof(szMiscArray), "%s%s (%i)\n"szMiscArrayweapnamei);
                    
format(stringsizeof(string), "ListItem%dSId"itemcount);
                    
SetPVarInt(playeridstringi);
                    
itemcount++;
                }
            }
            
SetPVarInt(playerid"DepositGunId"itemcount);
            
strcat(szMiscArray"Deposit a weapon");
            
ShowPlayerDialogEx(playeridDIALOG_BGUNSDIALOG_STYLE_LISTdgTitleszMiscArray"Select""Cancel");
        }
        case 
DIALOG_ENERGYBARS: {
            
DeletePVar(playerid"bnwd");
            
ShowPlayerDialogEx(playeridDIALOG_ENERGYBARSDIALOG_STYLE_LISTdgTitle"Withdraw\nDeposit""Select""Cancel");
        }
        case 
DIALOG_ENERGYBARS*2: {
            
format(dgTitlesizeof(dgTitle), "{FFF94D}%d {02B0F5}Energy Bars%s", (GetPVarInt(playerid"bnwd")) ? PlayerInfo[playerid][mInventory][4]:PlayerInfo[playerid][pBItems][11], (GetPVarInt(playerid"bnwd")) ? (" on hand"):(""));
            
format(szMiscArraysizeof(szMiscArray), "%s\nEnter the amount to %s:"extramsg, (GetPVarInt(playerid"bnwd")) ? ("deposit") : ("withdraw"));
            
ShowPlayerDialogEx(playeridDIALOG_ENERGYBARSDIALOG_STYLE_INPUTdgTitleszMiscArray"Select""Cancel");
        }
    }
    return 
1;
}
stock GetBackpackName(backpackid) {
    new 
bpName[16];
    switch(
backpackid) {
        case 
1bpName "Small Backpack";
        case 
2bpName "Medium Backpack";
        case 
3bpName "Large Backpack";
    }
    return 
bpName;
}
stock GetBackpackNarcoticsGrams(playerid) {
    new 
grams;
    for(new 
isizeof(Drugs); ++igrams += PlayerInfo[playerid][pBDrugs][i];
    return 
grams;
}
stock GetBackpackIngredientsGrams(playerid) {
    new 
grams;
    for(new 
isizeof(szIngredients); ++igrams += PlayerInfo[playerid][pBIngredients][i];
    return 
grams;
}
stock CountBackpackGuns(playerid) {
    new 
count;
    for(new 
611); i++)
        if(
PlayerInfo[playerid][pBItems][i] > 0)
            
count++;
    return 
count;
}
CMD:shopbpack(playeridparams[]) {
    if(
PlayerInfo[playerid][pShopTech] >= || PlayerInfo[playerid][pAdmin] > 3)
    {
        new 
playertogivetypeorderid;
        if(
sscanf(params"uii"playertogivetypeorderid)) {
            
SendClientMessageEx(playeridCOLOR_GREY"USAGE: /shopbpack [player] [type] [orderid]");
            
SendClientMessageEx(playeridCOLOR_WHITE"Types: 1(Small Backpack), 2(Medium Backpack), 3(Large Backpack)");
        }
        else if(!(
<= type <= 4)) {
            
SendClientMessageEx(playeridCOLOR_GREY"USAGE: /shopbpack [player] [type] [orderid]");
            
SendClientMessageEx(playeridCOLOR_WHITE"Types: 1(Small Backpack), 2(Medium Backpack), 3(Large Backpack)");
        }
        else {
            new
                
TypeName[7],
                
szMessage[87];
            switch(
type)
            {
                case 
1:
                {
                    
TypeName "Small";
                    
SetPlayerAttachedObject(playertogive93711, -0.002, -0.140999, -0.018.6999988.8, -8.799931.110.963);
                }
                case 
2:
                {
                    
TypeName "Medium";
                    
SetPlayerAttachedObject(playertogive93711, -0.002, -0.140999, -0.018.6999988.8, -8.799931.110.963);
                }
                case 
3:
                {
                    
TypeName "Large";
                    
SetPlayerAttachedObject(playertogive930261, -0.254999, -0.109, -0.02299910.6, -1.200023.41.2651.2421.062);
                }
            }
            
PlayerInfo[playertogive][pBackpack] = type;
            
PlayerInfo[playertogive][pBEquipped] = 1;
            
PlayerInfo[playertogive][pBStoredV] = INVALID_PLAYER_VEHICLE_ID;
            
PlayerInfo[playertogive][pBStoredH] = INVALID_HOUSE_ID;
            
format(szMessagesizeof(szMessage), "You have successfully created a %s Backpack for %s (OrderID: %d)."TypeNameGetPlayerNameEx(playertogive), orderid);
            
SendClientMessageEx(playeridCOLOR_WHITEszMessage);
            
format(szMessagesizeof(szMessage), "You now have a %s Backpack from %s (OrderID: %d)."TypeNameGetPlayerNameEx(playerid), orderid);
            
SendClientMessageEx(playertogiveCOLOR_WHITEszMessage);
            
SendClientMessageEx(playertogiveCOLOR_GREY"Use /backpackhelp to see the list of commands.");
            
format(szMessagesizeof(szMessage), "%s created a %s Backpack (%i) for %s(%d) (OrderID: %d)."GetPlayerNameEx(playerid), TypeNametypeGetPlayerNameEx(playertogive), GetPlayerSQLId(playertogive), orderid);
            
Log("logs/shoplog.log"szMessage);
        }
    }
    else 
SendClientMessageEx(playeridCOLOR_GREY" You are not allowed to use this command.");
    return 
1;
}
hook OnDialogResponse(playeriddialogidresponselistiteminputtext[]) {
    if(
arrAntiCheat[playerid][ac_iFlags][AC_DIALOGSPOOFING] > 0) return 1;
    switch(
dialogid)
    {
        case 
DIALOG_OBACKPACK: {
            if(
response) {
                if(!
IsBackpackAvailable(playerid)) {
                    
DeletePVar(playerid"BackpackOpen"), DeletePVar(playerid"BackpackProt"), SendClientMessageEx(playeridCOLOR_GREY"You cannot use your backpack at this moment.");
                    return 
1;
                }
                switch(
listitem) {
                    case 
0: { // Food
                        
if(PlayerInfo[playerid][pBItems][0] > 0) {
                            
ShowBackpackMenu(playeridDIALOG_BFOOD"- {02B0F5}Confirm meal use");
                        }
                        else {
                            
ShowBackpackMenu(playeridDIALOG_OBACKPACK"- {A80000}You don't have any meals");
                        }
                    }
                    case 
1: { // Narcotics
                        
ShowBackpackMenu(playeridDIALOG_BNARCOTICS"- {02B0F5}Select a narcotic");
                    }
                    case 
2: { // Guns
                        
if(PlayerInfo[playerid][pWRestricted] || PlayerInfo[playerid][pAccountRestricted]) return SendClientMessageEx(playeridCOLOR_GRAD2"You cannot use this option while being restricted.");
                        
ShowBackpackMenu(playeridDIALOG_BGUNS"- {02B0F5}Select a weapon");
                    }
                    case 
3: { // Energy Bars
                        
ShowBackpackMenu(playeridDIALOG_ENERGYBARS"- {02B0F5}Energy Bars");
                    }
                    case 
4: { // Med Kits
                        
if(PlayerInfo[playerid][pBItems][5] > 0) {
                            
ShowBackpackMenu(playeridDIALOG_BMEDKIT"- {02B0F5}Confirm med kit use");
                        }
                        else {
                            
ShowBackpackMenu(playeridDIALOG_OBACKPACK"- {A80000}You don't have any med kits");
                        }
                    }
                }
            }
            else {
                
DeletePVar(playerid"BackpackProt");
                
DeletePVar(playerid"BackpackOpen");
            }
        }
        case 
DIALOG_BFOOD: {
            if(
response) {
                if(!
IsBackpackAvailable(playerid)) {
                    
DeletePVar(playerid"BackpackOpen"), DeletePVar(playerid"BackpackProt"), SendClientMessageEx(playeridCOLOR_GREY"You cannot use your backpack at this moment.");
                    return 
1;
                }
                if(
GetPVarInt(playerid"BackpackMeal") == 1) {
                    
ShowBackpackMenu(playeridDIALOG_OBACKPACK"- {A80000}You're already using a meal.");
                }
                else
                {
                    
defer FinishMeal(playerid);
                    
SetPVarInt(playerid"BackpackMeal"1);
                    
ApplyAnimation(playerid"BOMBER""BOM_Plant"4.0000001);
                    
format(szMiscArraysizeof(szMiscArray), "{FF8000}** {C2A2DA}%s opens a backpack and takes out a Full Meal."GetPlayerNameEx(playerid));
                    
SendClientMessageEx(playeridCOLOR_WHITE"You are taking the Meal from your backpack, please wait.");
                    
ProxDetector(30.0playeridszMiscArrayCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                }
            }
            else {
                
ShowBackpackMenu(playeridDIALOG_OBACKPACK"");
            }
        }
        case 
DIALOG_BMEDKIT: {
            if(
response && (IsACop(playerid) || IsAMedic(playerid) || IsAGovernment(playerid))) {
                if(!
IsBackpackAvailable(playerid)) {
                    
DeletePVar(playerid"BackpackOpen"), DeletePVar(playerid"BackpackProt"), SendClientMessageEx(playeridCOLOR_GREY"You cannot use your backpack at this moment.");
                    return 
1;
                }
                if(
GetPVarInt(playerid"BackpackMedKit") == 1) {
                    
ShowBackpackMenu(playeridDIALOG_OBACKPACK"- {A80000}You're already using a med kit.");
                }
                else
                {
                    
defer FinishMedKit(playerid);
                    
SetPVarInt(playerid"BackpackMedKit"1);
                    
ApplyAnimation(playerid"BOMBER""BOM_Plant"4.0000001);
                    
format(szMiscArraysizeof(szMiscArray), "{FF8000}** {C2A2DA}%s opens a backpack and takes out a Kevlar Vest & First Aid Kit inside."GetPlayerNameEx(playerid));
                    
SendClientMessageEx(playeridCOLOR_WHITE"You are taking the Med Kit from your backpack, please wait.");
                    
ProxDetector(30.0playeridszMiscArrayCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                }
            }
            else {
                
ShowBackpackMenu(playeridDIALOG_OBACKPACK"");
            }
        }
        case 
DIALOG_BNARCOTICS: {
            if(
response) {
                if(!
IsBackpackAvailable(playerid)) {
                    
DeletePVar(playerid"BackpackOpen"), DeletePVar(playerid"BackpackProt"), SendClientMessageEx(playeridCOLOR_GREY"You cannot use your backpack at this moment.");
                    return 
1;
                }
                
SetPVarInt(playerid"pbitemindex"listitem);
                
ShowBackpackMenu(playeridDIALOG_BNARCOTICS2"");
            }
            else {
                
ShowBackpackMenu(playeridDIALOG_OBACKPACK"");
            }
        }
        case 
DIALOG_BNARCOTICS2: {
            if(
response) {
                if(!
IsBackpackAvailable(playerid)) {
                    
DeletePVar(playerid"BackpackOpen"), DeletePVar(playerid"BackpackProt"), SendClientMessageEx(playeridCOLOR_GREY"You cannot use your backpack at this moment.");
                    return 
1;
                }
                
SetPVarInt(playerid"bnwd"listitem);
                
ShowBackpackMenu(playeridDIALOG_BNARCOTICS3"");
            }
            else {
                
ShowBackpackMenu(playeridDIALOG_BNARCOTICS"- {02B0F5}Select a narcotic");
            }
        }
        case 
DIALOG_BNARCOTICS3: {
            if(
response) {
                if(!
IsBackpackAvailable(playerid)) {
                    
DeletePVar(playerid"BackpackOpen"), DeletePVar(playerid"BackpackProt"), SendClientMessageEx(playeridCOLOR_GREY"You cannot use your backpack at this moment.");
                    return 
1;
                }
                new 
pbi GetPVarInt(playerid"pbitemindex");
                if(
GetPVarInt(playerid"bnwd")) {
                    new 
namountmaxgramsdInfo[135];
                    if(
sscanf(inputtext"d"namount)) return ShowBackpackMenu(playeridDIALOG_BNARCOTICS3"{B20400}Wrong input{A9C4E4}");
                    if(
namount 1) return ShowBackpackMenu(playeridDIALOG_BNARCOTICS3"{B20400}Wrong input{A9C4E4}\nYou cannot put the amount less than 1");
                    switch(
PlayerInfo[playerid][pBackpack]) {
                        case 
1maxgrams 40;
                        case 
2maxgrams 100;
                        case 
3maxgrams 250;
                    }
                    if(
namount > (maxgrams-GetBackpackNarcoticsGrams(playerid)))
                    {
                        
format(dInfosizeof(dInfo), "{B20400}Wrong input, you can only store %d grams{A9C4E4}\nGrams available to store left {FFF600}%d{A9C4E4}\nEnter the amount to deposit"maxgramsmaxgrams-GetBackpackNarcoticsGrams(playerid));
                        
ShowBackpackMenu(playeridDIALOG_BNARCOTICS3dInfo);
                        return 
1;
                    }
                    if(
PlayerInfo[playerid][pDrugs][pbi] >= namountPlayerInfo[playerid][pDrugs][pbi] -= namount;
                    else return 
ShowBackpackMenu(playeridDIALOG_BNARCOTICS3"{B20400}Wrong input{A9C4E4}\nYou don't have that that amount of grams.");
                    
PlayerInfo[playerid][pBDrugs][pbi] += namount;
                    
format(szMiscArraysizeof(szMiscArray), "You have deposited %d grams of %s in your backpack."namountDrugs[pbi]);
                    
SendClientMessageEx(playeridCOLOR_WHITEszMiscArray);
                    new 
ip[MAX_PLAYER_NAME];
                    
GetPlayerIp(playeridipsizeof(ip));
                    
format(szMiscArraysizeof(szMiscArray), "[DRUGS] %s(%d) (IP:%s) deposited %d grams of %s (%d grams Total) [BACKPACK %d]"GetPlayerNameEx(playerid), GetPlayerSQLId(playerid), ipnamountDrugs[pbi], PlayerInfo[playerid][pDrugs][pbi], PlayerInfo[playerid][pBackpack]);
                    
Log("logs/backpack.log"szMiscArray);
                    
ShowBackpackMenu(playeridDIALOG_BNARCOTICS"- {02B0F5}Select a narcotic");
                }
                else {
                    new 
namountdInfo[135];
                    if(
sscanf(inputtext"d"namount)) return ShowBackpackMenu(playeridDIALOG_BNARCOTICS3"{B20400}Wrong input{A9C4E4}");
                    if(
namount 1) return ShowBackpackMenu(playeridDIALOG_BNARCOTICS3"{B20400}Wrong input{A9C4E4}\nYou cannot put the amount less than 1");
                    if(
namount PlayerInfo[playerid][pBDrugs][pbi])
                    {
                        
format(dInfosizeof(dInfo), "{B20400}Wrong input, you only have %d grams of %s{A9C4E4}\nGrams trying to withdraw {FFF600}%d{A9C4E4}\nEnter the amount to deposit"PlayerInfo[playerid][pBDrugs][pbi], Drugs[pbi], namount);
                        
ShowBackpackMenu(playeridDIALOG_BNARCOTICS3dInfo);
                        return 
1;
                    }
                    
PlayerInfo[playerid][pBDrugs][pbi] -= namount;
                    
PlayerInfo[playerid][pDrugs][pbi] += namount;
                    
format(szMiscArraysizeof(szMiscArray), "You have withdrawn %d grams of %s in your backpack."namountDrugs[pbi]);
                    
SendClientMessageEx(playeridCOLOR_WHITEszMiscArray);
                    new 
ip[MAX_PLAYER_NAME];
                    
GetPlayerIp(playeridipsizeof(ip));
                    
format(szMiscArraysizeof(szMiscArray), "[DRUGS] %s(%d) (IP:%s) withdrawn %d grams of %s (%d grams Total) [BACKPACK %d]"GetPlayerNameEx(playerid), GetPlayerSQLId(playerid), ipnamountDrugs[pbi], PlayerInfo[playerid][pBDrugs][pbi], PlayerInfo[playerid][pBackpack]);
                    
Log("logs/backpack.log"szMiscArray);
                    
ShowBackpackMenu(playeridDIALOG_BNARCOTICS"- {02B0F5}Select a narcotic");
                }
            }
            else {
                
ShowBackpackMenu(playeridDIALOG_BNARCOTICS2"");
            }
        }
        case 
DIALOG_BGUNS: {
            if(
response) {
                if(!
IsBackpackAvailable(playerid)) {
                    
DeletePVar(playerid"BackpackOpen"), DeletePVar(playerid"BackpackProt"), SendClientMessageEx(playeridCOLOR_GREY"You cannot use your backpack at this moment.");
                    return 
1;
                }
                new 
szDialog[130], weapname[20];
                if(
listitem == GetPVarInt(playerid"DepositGunId")) {
                    switch(
PlayerInfo[playerid][pBackpack]) {
                        case 
1: {
                            new 
myweapons[2], itemcount;
                            
GetPlayerWeaponData(playerid1myweapons[0], myweapons[1]);
                            if(
myweapons[0] > && myweapons[0] != && myweapons[0] != && PlayerInfo[playerid][pGuns][1] == myweapons[0] && PlayerInfo[playerid][pAGuns][1] == 0)
                            {
                                
GetWeaponName(myweapons[0], weapnamesizeof(weapname));
                                
format(szDialogsizeof(szDialog), "%s%s (%d)\n"szDialogweapnamemyweapons[0]);
                                
format(szMiscArraysizeof(szMiscArray), "ListItem%dWId"itemcount);
                                
SetPVarInt(playeridszMiscArraymyweapons[0]);
                                
itemcount++;
                            }
                            
GetPlayerWeaponData(playerid10myweapons[0], myweapons[1]);
                            if(
myweapons[0] > && PlayerInfo[playerid][pGuns][10] == myweapons[0] && PlayerInfo[playerid][pAGuns][10] == 0)
                            {
                                
GetWeaponName(myweapons[0], weapnamesizeof(weapname));
                                
format(szDialogsizeof(szDialog), "%s%s (%d)\n"szDialogweapnamemyweapons[0]);
                                
format(szMiscArraysizeof(szMiscArray), "ListItem%dWId"itemcount);
                                
SetPVarInt(playeridszMiscArraymyweapons[0]);
                                
itemcount++;
                            }
                            
GetPlayerWeaponData(playerid2myweapons[0], myweapons[1]);
                            if(
myweapons[0] > && pTazer{playerid} == && PlayerInfo[playerid][pGuns][2] == myweapons[0] && PlayerInfo[playerid][pAGuns][2] == 0)
                            {
                                
GetWeaponName(myweapons[0], weapnamesizeof(weapname));
                                
format(szDialogsizeof(szDialog), "%s%s (%d)\n"szDialogweapnamemyweapons[0]);
                                
format(szMiscArraysizeof(szMiscArray), "ListItem%dWId"itemcount);
                                
SetPVarInt(playeridszMiscArraymyweapons[0]);
                                
itemcount++;
                            }
                            if(
strlen(szDialog) > 0ShowPlayerDialogEx(playeridDIALOG_BGUNS2DIALOG_STYLE_LIST"Select a weapon to deposit"szDialog"Select""Cancel");
                            else {
                                
ShowBackpackMenu(playeridDIALOG_BGUNS"- {02B0F5}Select a weapon - No guns to store");
                            }
                        }
                        case 
23: {
                            new 
myweapons[2], itemcount;
                            
GetPlayerWeaponData(playerid1myweapons[0], myweapons[1]);
                            if(
myweapons[0] > && myweapons[0] != && myweapons[0] != && PlayerInfo[playerid][pGuns][1] == myweapons[0] && PlayerInfo[playerid][pAGuns][1] == 0)
                            {
                                
GetWeaponName(myweapons[0], weapnamesizeof(weapname));
                                
format(szDialogsizeof(szDialog), "%s%s (%d)\n"szDialogweapnamemyweapons[0]);
                                
format(szMiscArraysizeof(szMiscArray), "ListItem%dWId"itemcount);
                                
SetPVarInt(playeridszMiscArraymyweapons[0]);
                                
itemcount++;
                            }
                            
GetPlayerWeaponData(playerid10myweapons[0], myweapons[1]);
                            if(
myweapons[0] > && PlayerInfo[playerid][pGuns][10] == myweapons[0] && PlayerInfo[playerid][pAGuns][10] == 0)
                            {
                                
GetWeaponName(myweapons[0], weapnamesizeof(weapname));
                                
format(szDialogsizeof(szDialog), "%s%s (%d)\n"szDialogweapnamemyweapons[0]);
                                
format(szMiscArraysizeof(szMiscArray), "ListItem%dWId"itemcount);
                                
SetPVarInt(playeridszMiscArraymyweapons[0]);
                                
itemcount++;
                            }
                            
GetPlayerWeaponData(playerid2myweapons[0], myweapons[1]);
                            if(
myweapons[0] > && pTazer{playerid} == && PlayerInfo[playerid][pGuns][2] == myweapons[0] && PlayerInfo[playerid][pAGuns][2] == 0)
                            {
                                
GetWeaponName(myweapons[0], weapnamesizeof(weapname));
                                
format(szDialogsizeof(szDialog), "%s%s (%d)\n"szDialogweapnamemyweapons[0]);
                                
format(szMiscArraysizeof(szMiscArray), "ListItem%dWId"itemcount);
                                
SetPVarInt(playeridszMiscArraymyweapons[0]);
                                
itemcount++;
                            }
                            
GetPlayerWeaponData(playerid3myweapons[0], myweapons[1]);
                            if(
myweapons[0] > && PlayerInfo[playerid][pGuns][3] == myweapons[0] && PlayerInfo[playerid][pAGuns][3] == 0)
                            {
                                
GetWeaponName(myweapons[0], weapnamesizeof(weapname));
                                
format(szDialogsizeof(szDialog), "%s%s (%d)\n"szDialogweapnamemyweapons[0]);
                                
format(szMiscArraysizeof(szMiscArray), "ListItem%dWId"itemcount);
                                
SetPVarInt(playeridszMiscArraymyweapons[0]);
                                
itemcount++;
                            }
                            
GetPlayerWeaponData(playerid4myweapons[0], myweapons[1]);
                            if(
myweapons[0] > && PlayerInfo[playerid][pGuns][4] == myweapons[0] && PlayerInfo[playerid][pAGuns][4] == 0)
                            {
                                
GetWeaponName(myweapons[0], weapnamesizeof(weapname));
                                
format(szDialogsizeof(szDialog), "%s%s (%d)\n"szDialogweapnamemyweapons[0]);
                                
format(szMiscArraysizeof(szMiscArray), "ListItem%dWId"itemcount);
                                
SetPVarInt(playeridszMiscArraymyweapons[0]);
                                
itemcount++;
                            }
                            
GetPlayerWeaponData(playerid5myweapons[0], myweapons[1]);
                            if(
myweapons[0] > && PlayerInfo[playerid][pGuns][5] == myweapons[0] && PlayerInfo[playerid][pAGuns][5] == 0)
                            {
                                
GetWeaponName(myweapons[0], weapnamesizeof(weapname));
                                
format(szDialogsizeof(szDialog), "%s%s (%d)\n"szDialogweapnamemyweapons[0]);
                                
format(szMiscArraysizeof(szMiscArray), "ListItem%dWId"itemcount);
                                
SetPVarInt(playeridszMiscArraymyweapons[0]);
                                
itemcount++;
                            }
                            
GetPlayerWeaponData(playerid6myweapons[0], myweapons[1]);
                            if(
myweapons[0] > && PlayerInfo[playerid][pGuns][6] == myweapons[0] && PlayerInfo[playerid][pAGuns][6] == 0)
                            {
                                
GetWeaponName(myweapons[0], weapnamesizeof(weapname));
                                
format(szDialogsizeof(szDialog), "%s%s (%d)\n"szDialogweapnamemyweapons[0]);
                                
format(szMiscArraysizeof(szMiscArray), "ListItem%dWId"itemcount);
                                
SetPVarInt(playeridszMiscArraymyweapons[0]);
                                
itemcount++;
                            }
                            if(
strlen(szDialog) > 0ShowPlayerDialogEx(playeridDIALOG_BGUNS2DIALOG_STYLE_LIST"Select a weapon to deposit"szDialog"Select""Cancel");
                            else {
                                
ShowBackpackMenu(playeridDIALOG_BGUNS"- {02B0F5}Select a weapon - No guns to store");
                            }
                        }
                    }
                }
                else {
                    
format(szMiscArraysizeof(szMiscArray), "ListItem%dSId"listitem);
                    new 
slot GetPVarInt(playeridszMiscArray);
                    if(
PlayerInfo[playerid][pBItems][slot] > 0) {
                        new 
aWeapons[13][2];
                        for(new 
i13; ++i) {
                            
GetPlayerWeaponData(playeridiaWeapons[i][0], aWeapons[i][1]);
                            if(
aWeapons[i][0] == PlayerInfo[playerid][pBItems][slot]) return SendClientMessageEx(playeridCOLOR_GRAD1"You are already carrying this weapon.");
                        }
                        
GetWeaponName(PlayerInfo[playerid][pBItems][slot], weapnamesizeof(weapname));
                        
GivePlayerValidWeapon(playeridPlayerInfo[playerid][pBItems][slot]);
                        
DeletePVar(playeridszMiscArray);
                        
format(szMiscArraysizeof(szMiscArray), "You have withdrawn a %s from your backpack."weapname);
                        
SendClientMessageEx(playeridCOLOR_WHITEszMiscArray);
                        
format(szMiscArraysizeof(szMiscArray), "* %s has withdrawn a %s from their backpack."GetPlayerNameEx(playerid), weapname);
                        
ProxDetector(30.0playeridszMiscArrayCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        new 
ip[MAX_PLAYER_NAME];
                        
GetPlayerIp(playeridipsizeof(ip));
                        
format(szMiscArraysizeof(szMiscArray), "[WEAPONS] %s(%d) (IP:%s) withdrawn a %s(%d) [BACKPACK %d]"GetPlayerNameEx(playerid), GetPlayerSQLId(playerid), ipweapnamePlayerInfo[playerid][pBItems][slot], PlayerInfo[playerid][pBackpack]);
                        
Log("logs/backpack.log"szMiscArray);
                        
PlayerInfo[playerid][pBItems][slot] = 0;
                        
ShowBackpackMenu(playeridDIALOG_BGUNS"- {02B0F5}Select a weapon");
                        return 
1;
                    }
                }
            }
            else {
                
ShowBackpackMenu(playeridDIALOG_OBACKPACK"");
            }
        }
case 
DIALOG_BGUNS2: {
            if(
response) {
                if(!
IsBackpackAvailable(playerid)) {
                    
DeletePVar(playerid"BackpackOpen"), DeletePVar(playerid"BackpackProt"), SendClientMessageEx(playeridCOLOR_GREY"You cannot use your backpack at this moment.");
                    return 
1;
                }
                new 
handgunsprimgunswbidslott GetBackpackFreeSlotGun(playerid), weapnamee[32];
                for(new 
611i++) {
                    if(
PlayerInfo[playerid][pBItems][i] > 0) {
                        if(
IsWeaponHandgun(PlayerInfo[playerid][pBItems][i])) handguns++;
                        else if(
IsWeaponPrimary(PlayerInfo[playerid][pBItems][i])) primguns++;
                    }
                }
                switch(
PlayerInfo[playerid][pBackpack]) {
                    case 
1: {
                        
format(szMiscArraysizeof(szMiscArray), "ListItem%dWId"listitem);
                        
wbid GetPVarInt(playeridszMiscArray);
                        if(
handguns || primguns || IsWeaponPrimary(wbid)) {
                            
ShowBackpackMenu(playeridDIALOG_BGUNS"- {02B0F5}You can only carry 2 handguns");
                            return 
1;
                        }
                        if(
slott != && PlayerInfo[playerid][pGuns][GetWeaponSlot(wbid)] == wbid && PlayerInfo[playerid][pAGuns][GetWeaponSlot(wbid)] == 0) {
                            
RemovePlayerWeapon(playeridwbid);
                            
PlayerInfo[playerid][pBItems][slott] = wbid;
                            
GetWeaponName(wbidweapnameesizeof(weapnamee));
                            
format(szMiscArraysizeof(szMiscArray), "You have deposited a %s inside your backpack."weapnamee);
                            
SendClientMessageEx(playeridCOLOR_WHITEszMiscArray);
                            
format(szMiscArraysizeof(szMiscArray), "* %s has deposited a %s inside their backpack."GetPlayerNameEx(playerid), weapnamee);
                            
ProxDetector(30.0playeridszMiscArrayCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            new 
ip[MAX_PLAYER_NAME];
                            
GetPlayerIp(playeridipsizeof(ip));
                            
format(szMiscArraysizeof(szMiscArray), "[WEAPONS] %s(%d) (IP:%s) deposited a %s(%d) in slot %d [BACKPACK %d]"GetPlayerNameEx(playerid), GetPlayerSQLId(playerid), ipweapnameewbidslottPlayerInfo[playerid][pBackpack]);
                            
Log("logs/backpack.log"szMiscArray);
                            
ShowBackpackMenu(playeridDIALOG_BGUNS"- {02B0F5}Select a weapon");
                            return 
1;
                        }
                        else {
                            
ShowBackpackMenu(playeridDIALOG_BGUNS"- {02B0F5}Select a weapon ERROR");
                        }
                    }
                    case 
2: {
                        
format(szMiscArraysizeof(szMiscArray), "ListItem%dWId"listitem);
                        
wbid GetPVarInt(playeridszMiscArray);
                        if((
handguns >= && IsWeaponHandgun(wbid)) || (IsWeaponPrimary(wbid) && primguns >= 1) || (handguns >= && primguns >= 1)) {
                            
ShowBackpackMenu(playeridDIALOG_BGUNS"- {02B0F5}You can only carry 2 handguns and 1 primary");
                            return 
1;
                        }
                        if(
slott != && PlayerInfo[playerid][pGuns][GetWeaponSlot(wbid)] == wbid && PlayerInfo[playerid][pAGuns][GetWeaponSlot(wbid)] == 0) {
                            
RemovePlayerWeapon(playeridwbid);
                            
PlayerInfo[playerid][pBItems][slott] = wbid;
                            
GetWeaponName(wbidweapnameesizeof(weapnamee));
                            
format(szMiscArraysizeof(szMiscArray), "You have deposited a %s inside your backpack."weapnamee);
                            
SendClientMessageEx(playeridCOLOR_WHITEszMiscArray);
                            
format(szMiscArraysizeof(szMiscArray), "* %s has deposited a %s inside their backpack."GetPlayerNameEx(playerid), weapnamee);
                            
ProxDetector(30.0playeridszMiscArrayCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            new 
ip[MAX_PLAYER_NAME];
                            
GetPlayerIp(playeridipsizeof(ip));
                            
format(szMiscArraysizeof(szMiscArray), "[WEAPONS] %s(%d) (IP:%s) deposited a %s(%d) in slot %d [BACKPACK %d]"GetPlayerNameEx(playerid), GetPlayerSQLId(playerid), ipweapnameewbidslottPlayerInfo[playerid][pBackpack]);
                            
Log("logs/backpack.log"szMiscArray);
                            
ShowBackpackMenu(playeridDIALOG_BGUNS"- {02B0F5}Select a weapon");
                            return 
1;
                        }
                        else {
                            
ShowBackpackMenu(playeridDIALOG_BGUNS"- Select a weapon ERROR");
                        }
                    }
                    case 
3: {
                        
format(szMiscArraysizeof(szMiscArray), "ListItem%dWId"listitem);
                        
wbid GetPVarInt(playeridszMiscArray);
                        if((
handguns >= && primguns >= 3) || (primguns >= && IsWeaponPrimary(wbid)) || (handguns >= && IsWeaponHandgun(wbid))) {
                            
ShowBackpackMenu(playeridDIALOG_BGUNS"- You can only carry 2 handguns and 3 primary");
                            return 
1;
                        }
                        if(
slott != && PlayerInfo[playerid][pGuns][GetWeaponSlot(wbid)] == wbid && PlayerInfo[playerid][pAGuns][GetWeaponSlot(wbid)] == 0) {
                            
RemovePlayerWeapon(playeridwbid);
                            
PlayerInfo[playerid][pBItems][slott] = wbid;
                            
GetWeaponName(wbidweapnameesizeof(weapnamee));
                            
format(szMiscArraysizeof(szMiscArray), "You have deposited a %s inside your backpack."weapnamee);
                            
SendClientMessageEx(playeridCOLOR_WHITEszMiscArray);
                            
format(szMiscArraysizeof(szMiscArray), "* %s has deposited a %s inside their backpack."GetPlayerNameEx(playerid), weapnamee);
                            
ProxDetector(30.0playeridszMiscArrayCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            new 
ip[MAX_PLAYER_NAME];
                            
GetPlayerIp(playeridipsizeof(ip));
                            
format(szMiscArraysizeof(szMiscArray), "[WEAPONS] %s(%d) (IP:%s) deposited a %s(%d) in slot %d [BACKPACK %d]"GetPlayerNameEx(playerid), GetPlayerSQLId(playerid), ipweapnameewbidslottPlayerInfo[playerid][pBackpack]);
                            
Log("logs/backpack.log"szMiscArray);
                            
ShowBackpackMenu(playeridDIALOG_BGUNS"- Select a weapon");
                            return 
1;
                        }
                        else {
                            
ShowBackpackMenu(playeridDIALOG_BGUNS"- Select a weapon ERROR");
                        }
                    }
                }
            }
            else {
                
ShowBackpackMenu(playeridDIALOG_BGUNS"- Select a weapon");
            }
        }
        case 
DIALOG_BMEALSTORE: {
            if(
response) {
                
PlayerInfo[playerid][pBItems][0]++;
                
format(szMiscArray,sizeof(szMiscArray),"* You have stored a Full Meal in your backpack(%d meals).",PlayerInfo[playerid][pBItems][0]);
                
SendClientMessage(playeridCOLOR_GRAD2szMiscArray);
            }
            else {
                if (
PlayerInfo[playerid][pFitness] >= 5)
                    
PlayerInfo[playerid][pFitness] -= 5;
                else
                    
PlayerInfo[playerid][pFitness] = 0;
                
SetHealth(playerid100.0);
            }
        }
        case 
DIALOG_BDROP:
        {
            if(!
response) return SendClientMessageEx(playeridCOLOR_WHITE"You have successfully cancelled dropping your backpack.");
            if(
PlayerInfo[playerid][pBackpack] > 0)
            {
                new 
choice[7];
                switch(
PlayerInfo[playerid][pBackpack])
                {
                    case 
1choice "Small";
                    case 
2choice "Medium";
                    case 
3choice "Large";
                }
                
PlayerPlaySound(playerid10520.00.00.0);
                
format(szMiscArraysizeof(szMiscArray), "You have dropped your %s Backpack."choice);
                
SendClientMessageEx(playeridCOLOR_WHITEszMiscArray);
                
RemovePlayerAttachedObject(playerid9);
                
PlayerInfo[playerid][pBackpack] = 0;
                
PlayerInfo[playerid][pBEquipped] = 0;
                
PlayerInfo[playerid][pBStoredH] = INVALID_HOUSE_ID;
                
PlayerInfo[playerid][pBStoredV] = INVALID_PLAYER_VEHICLE_ID;
                for(new 
010i++)
                {
                    
PlayerInfo[playerid][pBItems][i] = 0;
                }
                
format(szMiscArraysizeof(szMiscArray), "* %s has thrown away their backpack."GetPlayerNameEx(playerid));
                
ProxDetector(30.0playeridszMiscArrayCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                new 
ip[MAX_PLAYER_NAME];
                
GetPlayerIp(playeridipsizeof(ip));
                
format(szMiscArraysizeof(szMiscArray), "[DROP] %s(%d) (IP:%s) has thrown away his %s Backpack"GetPlayerNameEx(playerid), GetPlayerSQLId(playerid), GetPlayerIpEx(playerid), choice);
                
Log("logs/backpack.log"szMiscArray);
            }
            else
            {
                
SendClientMessageEx(playeridCOLOR_GREY"You do not have a backpack!");
            }
        }
    }
    return 
0;
}
CMD:sellbackpack(playeridparams[])
{
    if(
PlayerInfo[playerid][pBackpack] > 0)
    {
        if(!
PlayerInfo[playerid][pBEquipped]) return SendClientMessageEx(playeridCOLOR_GREY"You are are not wearing your backpack, you can wear it with /bwear.");
        if(!
IsBackpackAvailable(playerid)) return SendClientMessageEx(playeridCOLOR_GREY"You cannot use your backpack at this moment.");
        if(
GetPVarType(playerid"IsInArena")) return SendClientMessageEx(playeridCOLOR_WHITE"You can't do this right now, you are in an arena!");
        if(
GetPVarIntplayerid"EventToken") != 0) return SendClientMessageEx(playeridCOLOR_GREY"You can't use this while you're in an event.");
        if(
IsPlayerInAnyVehicle(playerid)) return SendClientMessageEx(playeridCOLOR_WHITE"You can't do this while being inside the vehicle!");
        if(
GetPVarInt(playerid"EMSAttempt") != 0) return SendClientMessageEx(playeridCOLOR_GRAD2"You can't use this command!");
        if(
GetPVarInt(playerid"sellingbackpack")) return SendClientMessageEx(playeridCOLOR_GRAD2"You are already selling a backpack!");
        new 
string[128], giveplayeridpricebptype[8];
        if(
sscanf(params"ui"giveplayeridprice)) {
            
SendClientMessageEx(playeridCOLOR_GREY"USAGE: /sellbackpack [player] [price]");
            
SendClientMessageEx(playeridCOLOR_YELLOW"WARNING: /sellbackpack will automatically remove all your items currently in your backpack.");
            return 
1;
        }
        if(
price 0) {
            
SendClientMessageEx(playeridCOLOR_GREY"USAGE: /sellbackpack [player] [price]");
            
SendClientMessageEx(playeridCOLOR_YELLOW"WARNING: /sellbackpack will automatically remove all your items currently in your backpack.");
            return 
1;
        }
        if(
IsPlayerConnected(giveplayerid))
        {
            if(
playerid == giveplayerid) return 1;
            if (
ProxDetectorS(8.0playeridgiveplayerid))
            {
                switch(
PlayerInfo[playerid][pBackpack])
                {
                    case 
1bptype "Small";
                    case 
2bptype "Medium";
                    case 
3bptype "Large";
                }
                if(
PlayerInfo[giveplayerid][pBackpack] > 0) return SendClientMessageEx(playeridCOLOR_GREY"That player already has a backpack!");
                
SetPVarInt(giveplayerid"sellbackpack"playerid);
                
SetPVarInt(giveplayerid"sellbackpackprice"price);
                
SetPVarInt(playerid"sellingbackpack"1);
                
format(stringsizeof(string), "* %s has offered you a %s Backpack for $%s. /accept backpack to get the backpack."GetPlayerNameEx(playerid), bptypenumber_format(price));
                
SendClientMessageEx(giveplayeridCOLOR_LIGHTBLUEstring);
                
format(stringsizeof(string), "* You have offered %s your %s Backpack for $%s.",GetPlayerNameEx(giveplayerid), bptypenumber_format(price));
                
SendClientMessageEx(playeridCOLOR_LIGHTBLUEstring);
            }
            else
            {
                return 
SendClientMessageEx(playeridCOLOR_GREY" That person is not near you!");
            }
        }
        else
        {
            return 
SendClientMessageEx(playeridCOLOR_GREY" That person is not connected!");
        }
    }
    else return 
SendClientMessageEx(playeridCOLOR_GREY"You do not own a backpack(Use /miscshop to get one with credits)");
    return 
1;
}
CMD:listbitems(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] > || PlayerInfo[playerid][pWatchdog] >= 2)
    {
        new 
string[128], giveplayerid;
        if(
sscanf(params"u"giveplayerid)) return SendClientMessageEx(playeridCOLOR_GREY"USAGE: /listbitems [player]");
        if(
IsPlayerConnected(giveplayerid))
        {
            if(
PlayerInfo[giveplayerid][pBackpack] < 1) return SendClientMessageEx(playeridCOLOR_GREY"That player does not have a backpack!");
            new 
btype[8], weaponname[50];
            switch(
PlayerInfo[giveplayerid][pBackpack])
            {
                case 
1btype "Small";
                case 
2btype "Medium";
                case 
3btype "Large";
            }
            
SendClientMessageEx(playeridCOLOR_GREEN,"_______________________________________");
            
format(stringsizeof(string), "*** %s' %s Backpack items...  ***"GetPlayerNameEx(giveplayerid), btype);
            
SendClientMessageEx(playeridCOLOR_WHITEstring);
            if(
PlayerInfo[giveplayerid][pBItems][0] > 0)
            {
                
format(stringsizeof(string), "(Backpack) %d meals."PlayerInfo[giveplayerid][pBItems][0]);
                
SendClientMessageEx(playeridCOLOR_GREYstring);
            }
            for(new 
isizeof(Drugs); ++i) {
                if(
PlayerInfo[giveplayerid][pBDrugs][i] > 0) {
                    
format(stringsizeof(string), "(Backpack) %d grams of %s."PlayerInfo[giveplayerid][pBDrugs][i], Drugs[i]);
                    
SendClientMessageEx(playeridCOLOR_GREYstring);
                }
            }
            if(
PlayerInfo[giveplayerid][pBItems][5] > 0)
            {
                
format(stringsizeof(string), "(Backpack) %d Medical Kits."PlayerInfo[giveplayerid][pBItems][5]);
                
SendClientMessageEx(playeridCOLOR_GREYstring);
            }
            if(
PlayerInfo[giveplayerid][pBItems][11] > 0)
            {
                
format(stringsizeof(string), "(Backpack) %d Energy Bars."PlayerInfo[giveplayerid][pBItems][11]);
                
SendClientMessageEx(playeridCOLOR_GREYstring);
            }
            new 
sent;
            for (new 
611i++)
            {
                if(
PlayerInfo[giveplayerid][pBItems][i] > 0)
                {
                    if(!
sent)
                    {
                        
format(stringsizeof(string), "*** %s' %s Backpack weapons...  ***"GetPlayerNameEx(giveplayerid), btype);
                        
SendClientMessageEx(playeridCOLOR_WHITEstring);
                        
sent 1;
                    }
                    
GetWeaponName(PlayerInfo[giveplayerid][pBItems][i], weaponnamesizeof(weaponname));
                    
format(stringsizeof(string), "Weapon: %s."weaponname);
                    
SendClientMessageEx(playeridCOLOR_GRAD1string);
                }
            }
            
SendClientMessageEx(playeridCOLOR_GREEN,"_______________________________________");
        }
        else 
SendClientMessageEx(playeridCOLOR_GRAD1"Invalid player specified.");
    }
    else
    {
        
SendClientMessageEx(playeridCOLOR_GRAD1"You are not authorized to use that command.");
    }
    return 
1;
}
CMD:bsearch(playeridparams[])
{
    if(
IsACop(playerid) || PlayerInfo[playerid][pJob] == || PlayerInfo[playerid][pJob2] == || PlayerInfo[playerid][pJob3] == 8)
    {
        new 
string[128], giveplayerid;
        if(
sscanf(params"u"giveplayerid)) return SendClientMessageEx(playeridCOLOR_GREY"USAGE: /bsearch [player]");
        if(
IsPlayerConnected(giveplayerid) && ProxDetectorS(8.0playeridgiveplayerid))
        {
            if(
giveplayerid == playerid) return SendClientMessageEx(playeridCOLOR_GREY"You cannot search yourself!");
            if(
PlayerInfo[giveplayerid][pBEquipped] < 1) return SendClientMessageEx(playeridCOLOR_GREY"That player is not wearing a backpack!");
            new 
btype[8], weaponname[50];
            switch(
PlayerInfo[giveplayerid][pBackpack])
            {
                case 
1btype "Small";
                case 
2btype "Medium";
                case 
3btype "Large";
            }
            
SendClientMessageEx(playeridCOLOR_GREEN,"_______________________________________");
            
format(stringsizeof(string), "*** %s' %s Backpack items...  ***"GetPlayerNameEx(giveplayerid), btype);
            
SendClientMessageEx(playeridCOLOR_WHITEstring);
            if(
PlayerInfo[giveplayerid][pBItems][0] > 0)
            {
                
format(stringsizeof(string), "(Backpack) %d meals."PlayerInfo[giveplayerid][pBItems][0]);
                
SendClientMessageEx(playeridCOLOR_GREYstring);
            }
            for(new 
isizeof(Drugs); ++i) {
                if(
PlayerInfo[giveplayerid][pBDrugs][i] > 0) {
                    
format(stringsizeof(string), "(Backpack) %d grams of %s."PlayerInfo[giveplayerid][pBDrugs][i], Drugs[i]);
                    
SendClientMessageEx(playeridCOLOR_GREYstring);
                }
            }
            if(
PlayerInfo[giveplayerid][pBItems][5] > 0)
            {
                
format(stringsizeof(string), "(Backpack) %d Medical Kits."PlayerInfo[giveplayerid][pBItems][5]);
                
SendClientMessageEx(playeridCOLOR_GREYstring);
            }
            if(
PlayerInfo[giveplayerid][pBItems][11] > 0)
            {
                
format(stringsizeof(string), "(Backpack) %d Energy Bars."PlayerInfo[giveplayerid][pBItems][11]);
                
SendClientMessageEx(playeridCOLOR_GREYstring);
            }
            new 
sent;
            for (new 
611i++)
            {
                if(
PlayerInfo[giveplayerid][pBItems][i] > 0)
                {
                    if(!
sent)
                    {
                        
format(stringsizeof(string), "*** %s' %s Backpack weapons...  ***"GetPlayerNameEx(giveplayerid), btype);
                        
SendClientMessageEx(playeridCOLOR_WHITEstring);
                        
sent 1;
                    }
                    
GetWeaponName(PlayerInfo[giveplayerid][pBItems][i], weaponnamesizeof(weaponname));
                    
format(stringsizeof(string), "Weapon: %s."weaponname);
                    
SendClientMessageEx(playeridCOLOR_GRAD1string);
                }
            }
            
SendClientMessageEx(playeridCOLOR_GREEN,"_______________________________________");
            
format(stringsizeof(string), "* %s has searched %s's backpack for any illegal items."GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid));
            
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        }
        else 
SendClientMessageEx(playeridCOLOR_GRAD1"Invalid player specified.");
    }
    else
    {
        
SendClientMessageEx(playeridCOLOR_GRAD1"You are not authorized to use that command.");
    }
    return 
1;
}
CMD:bremove(playeridparams[])
{
    if (!
IsACop(playerid))
    {
        
SendClientMessageEx(playerid,COLOR_GREY,"You're not a law enforcement officer.");
        return 
1;
    }
    new 
string[128], giveplayeriditem[6], bptype[8];
    if(
sscanf(params"us[6]"giveplayeriditem)) {
        
SendClientMessageEx(playeridCOLOR_GREY"USAGE: /bremove [player] [item]");
        
SendClientMessageEx(playeridCOLOR_YELLOW"ITEMS: [All drugs - see /mydrugs], Guns, Meals");
        return 
1;
    }
    if(
IsPlayerConnected(giveplayerid))
    {
        if(
playerid == giveplayerid) return 1;
        if (
ProxDetectorS(8.0playeridgiveplayerid))
        {
            if(
PlayerInfo[giveplayerid][pBEquipped] < && PlayerInfo[giveplayerid][pBackpack] < 1) return SendClientMessageEx(playeridCOLOR_GREY"That player is not wearing a backpack!");
            switch(
PlayerInfo[playerid][pBackpack])
            {
                case 
1bptype "Small";
                case 
2bptype "Medium";
                case 
3bptype "Large";
            }
            new 
iDrugID GetDrugID(item);
            if(
iDrugID != -1) {
                
format(stringsizeof(string), "* You have taken away %s's %s from their backpack."GetPlayerNameEx(giveplayerid), Drugs[iDrugID]);
                
SendClientMessageEx(playeridCOLOR_LIGHTBLUEstring);
                
format(stringsizeof(string), "* Officer %s has taken away your %s from your backpack."GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), Drugs[iDrugID]);
                
SendClientMessageEx(giveplayeridCOLOR_LIGHTBLUEstring);
                
format(stringsizeof(string), "* Officer %s has taken away %s's %s from their backpack."GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), Drugs[iDrugID]);
                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                
PlayerInfo[giveplayerid][pBDrugs][iDrugID] = 0;
            }
            else if(
strcmp(item,"meals",true) == 0)
            {
                
format(stringsizeof(string), "* You have taken away %s's meals from their backpack."GetPlayerNameEx(giveplayerid));
                
SendClientMessageEx(playeridCOLOR_LIGHTBLUEstring);
                
format(stringsizeof(string), "* Officer %s has taken away your meals from your backpack."GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
                
SendClientMessageEx(giveplayeridCOLOR_LIGHTBLUEstring);
                
format(stringsizeof(string), "* Officer %s has taken away %s's meals from their backpack."GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                
PlayerInfo[giveplayerid][pBItems][0] = 0;
            }
            else if(
strcmp(item,"guns",true) == 0)
            {
                
format(stringsizeof(string), "* You have taken away %s's weapons from their backpack."GetPlayerNameEx(giveplayerid));
                
SendClientMessageEx(playeridCOLOR_LIGHTBLUEstring);
                
format(stringsizeof(string), "* Officer %s has taken away your weapons from your backpack."GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
                
SendClientMessageEx(giveplayeridCOLOR_LIGHTBLUEstring);
                
format(stringsizeof(string), "* Officer %s has taken away %s's weapons from their backpack."GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                for(new 
611i++)
                {
                    
PlayerInfo[giveplayerid][pBItems][i] = 0;
                }
            }
        }
        else
        {
            return 
SendClientMessageEx(playeridCOLOR_GREY" That person is not near you!");
        }
    }
    else
    {
        return 
SendClientMessageEx(playeridCOLOR_GREY" That person is not connected!");
    }
    return 
1;
}
CMD:bwear(playeridparams[])
{
    if(
PlayerInfo[playerid][pBackpack] > 0)
    {
        if(!
IsBackpackAvailable(playerid) && PlayerInfo[playerid][pBEquipped]) return SendClientMessageEx(playeridCOLOR_GREY"You cannot use your backpack at this moment.");
        if(
GetPVarType(playerid"IsInArena")) return SendClientMessageEx(playeridCOLOR_WHITE"You can't do this right now, you are in an arena!");
        if(
GetPVarIntplayerid"EventToken") != 0) return SendClientMessageEx(playeridCOLOR_GREY"You can't use this while you're in an event.");
        if(
IsPlayerInAnyVehicle(playerid)) return SendClientMessageEx(playeridCOLOR_WHITE"You can't do this while being inside the vehicle!");
        if(
GetPVarInt(playerid"EMSAttempt") != 0) return SendClientMessageEx(playeridCOLOR_GRAD2"You can't use this command!");
        if(
PlayerInfo[playerid][pBEquipped]) return SendClientMessageEx(playeridCOLOR_GREY"You are already wearing your backpack, you can store it to your car/house with /bstore.");
        new 
string[128], btype[8], 0FloatxFloatyFloatzpvid = -1;
        if(
PlayerInfo[playerid][pBStoredV] != INVALID_PLAYER_VEHICLE_ID)
        {
            for(
MAX_PLAYERVEHICLESi++)
            {
                if(
PlayerVehicleInfo[playerid][i][pvId] != INVALID_PLAYER_VEHICLE_ID && PlayerVehicleInfo[playerid][i][pvSlotId] == PlayerInfo[playerid][pBStoredV]) GetVehiclePos(PlayerVehicleInfo[playerid][i][pvId], xyz);
                if(
IsPlayerInRangeOfPoint(playerid5.0xyz))
                {
                    
pvid i;
                    break;
                }
            }
            if(
pvid == -1) return SendClientMessageEx(playerid,COLOR_GREY,"You are not near the vehicle where the backpack is stored.");
            new 
engine,lights,alarm,doors,bonnet,boot,objective;
            
GetVehicleParamsEx(PlayerVehicleInfo[playerid][pvid][pvId],engine,lights,alarm,doors,bonnet,boot,objective);
            if(
boot == VEHICLE_PARAMS_OFF || boot == VEHICLE_PARAMS_UNSET) return SendClientMessageEx(playeridCOLOR_GRAD3"You can't take/put stuff inside the trunk if it's closed!(/car trunk to open it)");
            if(
PlayerHoldingObject[playerid][9] != || IsPlayerAttachedObjectSlotUsed(playerid9))
                
RemovePlayerAttachedObject(playerid9), PlayerHoldingObject[playerid][9] = 0;
            switch(
PlayerInfo[playerid][pBackpack])
            {
                case 
1:
                {
                    
btype "Small";
                    
SetPlayerAttachedObject(playerid93711, -0.002, -0.140999, -0.018.6999988.8, -8.799931.110.963);
                }
                case 
2:
                {
                    
btype "Medium";
                    
SetPlayerAttachedObject(playerid93711, -0.002, -0.140999, -0.018.6999988.8, -8.799931.110.963);
                }
                case 
3:
                {
                    
btype "Large";
                    
SetPlayerAttachedObject(playerid930261, -0.254999, -0.109, -0.02299910.6, -1.200023.41.2651.2421.062);
                }
            }
            
format(stringsizeof(string), "You took your %s Backpack from your %s, use /bstore to store it."btypeGetVehicleName(PlayerVehicleInfo[playerid][pvid][pvId]));
            
SendClientMessageEx(playeridCOLOR_GREYstring);
            
PlayerInfo[playerid][pBStoredV] = INVALID_PLAYER_VEHICLE_ID;
            
PlayerInfo[playerid][pBEquipped] = 1;
            
format(stringsizeof(string), "* %s has taken a backpack from their car trunk."GetPlayerNameEx(playerid));
            
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        }
        else if(
PlayerInfo[playerid][pBStoredH] != INVALID_HOUSE_ID)
        {
            for(
0MAX_HOUSESi++)
            {
                if(
HouseInfo[i][hSQLId] == PlayerInfo[playerid][pBStoredH])
                {
                    
pvid i;
                    break;
                }
            }
            if(
IsPlayerInRangeOfPoint(playerid50HouseInfo[pvid][hInteriorX], HouseInfo[pvid][hInteriorY], HouseInfo[pvid][hInteriorZ]) && GetPlayerVirtualWorld(playerid) == HouseInfo[pvid][hIntVW] && GetPlayerInterior(playerid) == HouseInfo[pvid][hIntIW])
            {
                if(
PlayerHoldingObject[playerid][9] != || IsPlayerAttachedObjectSlotUsed(playerid9))
                    
RemovePlayerAttachedObject(playerid9), PlayerHoldingObject[playerid][9] = 0;
                switch(
PlayerInfo[playerid][pBackpack])
                {
                    case 
1:
                    {
                        
btype "Small";
                        
SetPlayerAttachedObject(playerid93711, -0.002, -0.140999, -0.018.6999988.8, -8.799931.110.963);
                    }
                    case 
2:
                    {
                        
btype "Medium";
                        
SetPlayerAttachedObject(playerid93711, -0.002, -0.140999, -0.018.6999988.8, -8.799931.110.963);
                    }
                    case 
3:
                    {
                        
btype "Large";
                        
SetPlayerAttachedObject(playerid930261, -0.254999, -0.109, -0.02299910.6, -1.200023.41.2651.2421.062);
                    }
                }
                
format(stringsizeof(string), "You took your %s Backpack from your house, use /bstore to store it."btype);
                
SendClientMessageEx(playeridCOLOR_GREYstring);
                
PlayerInfo[playerid][pBStoredH] = INVALID_HOUSE_ID;
                
PlayerInfo[playerid][pBEquipped] = 1;
                
format(stringsizeof(string), "* %s has taken a backpack from their house."GetPlayerNameEx(playerid));
                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 
1;
            }
            else return 
SendClientMessageEx(playeridCOLOR_GREY"You need to be inside the house you have stored your backpack!");
        }
    }
    else return 
SendClientMessageEx(playeridCOLOR_GREY"You do not own a backpack(Use /miscshop to get one with credits)");
    return 
1;
}
CMD:bstore(playeridparams[])
{
    if(
PlayerInfo[playerid][pBackpack] > 0)
    {
        if(!
PlayerInfo[playerid][pBEquipped]) return SendClientMessageEx(playeridCOLOR_GREY"You are are not wearing your backpack, you can wear it with /bwear.");
        if(!
IsBackpackAvailable(playerid)) return SendClientMessageEx(playeridCOLOR_GREY"You cannot use your backpack at this moment.");
        if(
GetPVarType(playerid"IsInArena")) return SendClientMessageEx(playeridCOLOR_WHITE"You can't do this right now, you are in an arena!");
        if(
GetPVarInt(playerid"EventToken") != 0) return SendClientMessageEx(playeridCOLOR_GREY"You can't use this while you're in an event.");
        if(
IsPlayerInAnyVehicle(playerid)) return SendClientMessageEx(playeridCOLOR_WHITE"You can't do this while being inside the vehicle!");
        if(
GetPVarInt(playerid"EMSAttempt") != 0) return SendClientMessageEx(playeridCOLOR_GRAD2"You can't use this command!");
        new 
FloatHealth;
        
GetHealth(playeridHealth);
        if(
Health 50.0) return SendClientMessageEx(playerid,COLOR_GREY,"You cannot store a backpack in a house/car when your health lower than 80.");
        new 
string[128], housecar[6];
        if(
sscanf(params"s[6]"housecar)) return SendClientMessageEx(playeridCOLOR_GREY"USAGE: /bstore [house/car]");
        if(
strcmp(housecar"car"truestrlen(housecar)) == 0)
        {
            new 
pvid = -1FloatxFloatyFloatz;
            for(new 
MAX_PLAYERVEHICLESd++)
            {
                if(
PlayerVehicleInfo[playerid][d][pvId] != INVALID_PLAYER_VEHICLE_IDGetVehiclePos(PlayerVehicleInfo[playerid][d][pvId], xyz);
                if(
IsPlayerInRangeOfPoint(playerid5.0xyz))
                {
                    
pvid d;
                    break;
                }
            }
            if(
pvid == -1) return SendClientMessageEx(playerid,COLOR_GREY,"You are not near any vehicle that you own.");
            new 
engine,lights,alarm,doors,bonnet,boot,objective;
            
GetVehicleParamsEx(PlayerVehicleInfo[playerid][pvid][pvId],engine,lights,alarm,doors,bonnet,boot,objective);
            if(
boot == VEHICLE_PARAMS_OFF || boot == VEHICLE_PARAMS_UNSET) return SendClientMessageEx(playeridCOLOR_GRAD3"You can't take/put stuff inside the trunk if it's closed!(/car trunk to open it)");
            if(
GetVehicleModel(PlayerVehicleInfo[playerid][pvid][pvId]) == 481 || GetVehicleModel(PlayerVehicleInfo[playerid][pvid][pvId]) == 510)  return SendClientMessageEx(playerid,COLOR_GREY,"That vehicle doesn't have a trunk.");
            new 
btype[7];
            switch(
PlayerInfo[playerid][pBackpack])
            {
                case 
1btype "Small";
                case 
2btype "Medium";
                case 
3btype "Large";
            }
            
format(stringsizeof(string), "You stored your %s Backpack in your %s, use /bwear to wear it."btypeGetVehicleName(PlayerVehicleInfo[playerid][pvid][pvId]));
            
SendClientMessageEx(playeridCOLOR_GREYstring);
            
RemovePlayerAttachedObject(playerid9);
            
PlayerInfo[playerid][pBEquipped] = 0;
            
PlayerInfo[playerid][pBStoredV] = PlayerVehicleInfo[playerid][pvid][pvSlotId];
            
format(stringsizeof(string), "* %s has stored a backpack in the trunk of their car."GetPlayerNameEx(playerid));
            
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            
format(stringsizeof(string), "[TRUNK] %s(%d) (%s) stored their %s backpack in [SQLID:%d][SlotID:%d][ModelID:%d]"GetPlayerNameEx(playerid), GetPlayerSQLId(playerid), GetPlayerIpEx(playerid), btypePlayerVehicleInfo[playerid][pvid][pvSlotId], pvidPlayerVehicleInfo[playerid][pvid][pvModelId]);
            
Log("logs/backpack.log"string);
        }
        else if(
strcmp(housecar"house"truestrlen(housecar)) == 0)
        {
            if(
Homes[playerid] > 0)
            {
                new 
hid = -1;
                for(new 
iMAX_HOUSESi++)
                {
                    if(
GetPlayerSQLId(playerid) == HouseInfo[i][hOwnerID] && IsPlayerInRangeOfPoint(playerid50HouseInfo[i][hInteriorX], HouseInfo[i][hInteriorY], HouseInfo[i][hInteriorZ]) && GetPlayerVirtualWorld(playerid) == HouseInfo[i][hIntVW] && GetPlayerInterior(playerid) == HouseInfo[i][hIntIW])
                    {
                        
hid i;
                        break;
                    }
                }
                if(
hid == -1) return SendClientMessageEx(playeridCOLOR_GREY"You're not in a house that you own.");
                new 
btype[7];
                switch(
PlayerInfo[playerid][pBackpack])
                {
                    case 
1btype "Small";
                    case 
2btype "Medium";
                    case 
3btype "Large";
                }
                
format(stringsizeof(string), "You stored your %s Backpack in your house, use /bwear to wear it."btype);
                
SendClientMessageEx(playeridCOLOR_GREYstring);
                
RemovePlayerAttachedObject(playerid9);
                
PlayerInfo[playerid][pBEquipped] = 0;
                
PlayerInfo[playerid][pBStoredH] = HouseInfo[hid][hSQLId];
                
format(stringsizeof(string), "* %s has stored a backpack in their house."GetPlayerNameEx(playerid));
                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                
format(stringsizeof(string), "[HOUSE] %s(%d) (%s) stored his %s backpack in [HouseID:%d]"GetPlayerNameEx(playerid), GetPlayerSQLId(playerid), GetPlayerIpEx(playerid), btypehid);
                
Log("logs/backpack.log"string);
            }
            else return 
SendClientMessageEx(playeridCOLOR_GREY"You don't own a house.");
        }
        else return 
SendClientMessageEx(playeridCOLOR_GREY"USAGE: /bstore [house/car]");
    }
    else return 
SendClientMessageEx(playeridCOLOR_GREY"You do not own a backpack(Use /miscshop to get one with credits)");
    return 
1;
}
CMD:bopen(playeridparams[])
{
    if(
PlayerInfo[playerid][pBackpack] > 0)
    {
        if(
dr_iPlayerTimeStamp[playerid] > gettime() - 60) return SendClientMessageEx(playeridCOLOR_GRAD1"You have been injured in the last minute");
        if(!
IsBackpackAvailable(playerid)) {
            
SendClientMessageEx(playeridCOLOR_GREY"You cannot use your backpack at this moment.");
            return 
1;
        }
        new 
string[122];
        if(
GetPVarInt(playerid"BackpackDisabled") > 0)
        {
            
format(stringsizeof(string), "You have recently taken damage during the backpack menu, your backpack is disabled for %d second(s)"GetPVarInt(playerid"BackpackDisabled"));
            
SendClientMessageEx(playeridCOLOR_GREYstring);
            return 
1;
        }
        
ApplyAnimation(playerid"BOMBER""BOM_Plant"4.0000001);
        
format(stringsizeof(string), "{FF8000}** {C2A2DA}%s lays down and opens a backpack."GetPlayerNameEx(playerid));
        
SetPlayerChatBubble(playeridstringCOLOR_PURPLE15.05000);
        
// ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        
SetPVarInt(playerid"BackpackProt"1);
        
SetPVarInt(playerid"BackpackOpen"1);
        
ShowBackpackMenu(playeridDIALOG_OBACKPACK"");
    }
    return 
1;
}
CMD:backpackhelp(playeridparams[])
{
    
SetPVarInt(playerid"HelpResultCat0"2);
    
Help_ListCat(playeridDIALOG_HELPCATOTHER1);
    return 
1;
}
CMD:obackpackhelp(playeridparams[]) {
    
szMiscArray[0] = 0;
    
format(szMiscArraysizeof(szMiscArray), "Item: Small Backpack\nFood Storage: 1 Meals\nNarcotics Storage: 40 Grams\nFirearms Storage: 2 Weapons(Handguns only)\nCost: {FFD700}%s{A9C4E4}\n\n"number_format(ShopItems[36][sItemPrice]));
    
format(szMiscArraysizeof(szMiscArray), "%sItem: Medium Backpack\nFood Storage: 4 Meals\nNarcotics Storage: 100 Grams\nFirearms Storage: 3 Weapons(2 Handguns & 1 Primary)\nCost: {FFD700}%s{A9C4E4}\n\n"szMiscArraynumber_format(ShopItems[37][sItemPrice]));
    
format(szMiscArraysizeof(szMiscArray), "%sItem: Large Backpack\nFood Storage: 5 Meals\nNarcotics Storage: 250 Grams\nFirearms Storage: 5 Weapons(2 Handguns & 3 Primary)\nCost: {FFD700}%s{A9C4E4}\n\n\n"szMiscArraynumber_format(ShopItems[38][sItemPrice]));
    
format(szMiscArraysizeof(szMiscArray), "%sCommands available: /bstore /bwear /bopen /sellbackpack /drop backpack (/miscshop to buy one with credits)"szMiscArray);
    
ShowPlayerDialogEx(playeridDIALOG_NOTHINGDIALOG_STYLE_MSGBOX"Backpack Information"szMiscArray"Exit""");
    return 
1;

PHP код:
./includes/dynamic/points.pwn(524) : error 001expected token"-string end-"but found "-identifier-" 
just shows no error for me ._.
are you sure about that?
also you may try that.
PHP код:
strcpy(DynPoints[GetPVarInt(playerid"pEditingPoint")][poName], (isnull(inputtext)) ? ("NULL") : (inputtext), 24); 
Reply


Messages In This Thread
2 pwn related errors help! - by Pr0GreSiVe - 20.01.2018, 15:40
Re: 2 pwn related errors help! - by DelK - 20.01.2018, 15:50
Re: 2 pwn related errors help! - by Pr0GreSiVe - 20.01.2018, 16:09
Re: 2 pwn related errors help! - by Dayrion - 20.01.2018, 16:49
Re: 2 pwn related errors help! - by DelK - 20.01.2018, 16:50
Re: 2 pwn related errors help! - by Pr0GreSiVe - 20.01.2018, 16:59
Re: 2 pwn related errors help! - by Osamakurdi - 20.01.2018, 17:12
Re: 2 pwn related errors help! - by Pr0GreSiVe - 20.01.2018, 17:21
Re: 2 pwn related errors help! - by Pr0GreSiVe - 21.01.2018, 11:09
Re: 2 pwn related errors help! - by jlalt - 21.01.2018, 11:22

Forum Jump:


Users browsing this thread: 1 Guest(s)