4 errors about Givedodweapon.
#2

On This Problem | Line #1 :-
Код:
stock GiveDodWeapon(playerid, weaponid, ammo)
{
	GunsBeingRemoved[playerid] = 1;
	PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
	if(weaponid == 0 || weaponid == 1)
	{ // Slot 0
	    GunsBeingRemoved[playerid] = 1;
	    PlayerInfo[playerid][pWeapon][0] = weaponid;
	    GunsBeingRemoved[playerid] = 1;
	}
	else if(weaponid == 2 || weaponid == 3 || weaponid == 4 || weaponid == 5 || weaponid == 6 || weaponid == 7 || weaponid == 8 || weaponid == 9)
	{ // Slot 1
		GunsBeingRemoved[playerid] = 1;
	    PlayerInfo[playerid][pWeapon][1] = weaponid;
	    GunsBeingRemoved[playerid] = 1;
	}
	else if(weaponid == 22 || weaponid == 23 || weaponid == 24)
	{ // Slot 2
	    GunsBeingRemoved[playerid] = 1;
	    PlayerInfo[playerid][pWeapon][2] = weaponid;
	    GunsBeingRemoved[playerid] = 1;
	}
	else if(weaponid == 25 || weaponid == 26 || weaponid == 27)
	{ // Slot 3
	    GunsBeingRemoved[playerid] = 1;
	    PlayerInfo[playerid][pWeapon][3] = weaponid;
	    GunsBeingRemoved[playerid] = 1;
	}
	else if(weaponid == 28 || weaponid == 29 || weaponid == 32)
	{ // Slot 4
	    GunsBeingRemoved[playerid] = 1;
	    PlayerInfo[playerid][pWeapon][4] = weaponid;
	    GunsBeingRemoved[playerid] = 1;
	}
	else if(weaponid == 30 || weaponid == 31)
	{ // Slot 5
	    GunsBeingRemoved[playerid] = 1;
	    PlayerInfo[playerid][pWeapon][5] = weaponid;
	    GunsBeingRemoved[playerid] = 1;
	}
	else if(weaponid == 33 || weaponid == 34)
	{ // Slot 6
	    GunsBeingRemoved[playerid] = 1;
	    PlayerInfo[playerid][pWeapon][6] = weaponid;
	    GunsBeingRemoved[playerid] = 1;
	}
	else if(weaponid == 35 || weaponid == 36 || weaponid == 37 || weaponid == 38)
	{ // Slot 7
	    GunsBeingRemoved[playerid] = 1;
	    PlayerInfo[playerid][pWeapon][7] = weaponid;
	    GunsBeingRemoved[playerid] = 1;
	}
	else if(weaponid == 16 || weaponid == 17 || weaponid == 18 || weaponid == 39)
	{ // Slot 8
	    GunsBeingRemoved[playerid] = 1;
	    PlayerInfo[playerid][pWeapon][8] = weaponid;
	    GunsBeingRemoved[playerid] = 1;
	}
	else if(weaponid == 41 || weaponid == 42 || weaponid == 43)
	{ // Slot 9
	    GunsBeingRemoved[playerid] = 1;
	    PlayerInfo[playerid][pWeapon][9] = weaponid;
	    GunsBeingRemoved[playerid] = 1;
	}
	else if(weaponid == 10 || weaponid == 11 || weaponid == 12 || weaponid == 13 || weaponid == 14 || weaponid == 15)
	{ // Slot 10
	    GunsBeingRemoved[playerid] = 1;
	    PlayerInfo[playerid][pWeapon][10] = weaponid;
	    GunsBeingRemoved[playerid] = 1;
	}
	else if(weaponid == 44 || weaponid == 45 || weaponid == 46)
	{ // Slot 11
	    GunsBeingRemoved[playerid] = 1;
	    PlayerInfo[playerid][pWeapon][11] = weaponid;
	    GunsBeingRemoved[playerid] = 1;
	}
	else if(weaponid == 40)
	{ // Slot 12
	    GunsBeingRemoved[playerid] = 1;
	    PlayerInfo[playerid][pWeapon][12] = weaponid;
	    GunsBeingRemoved[playerid] = 1;
	}
	GivePlayerWeapon(playerid, weaponid, ammo);
	return 1;
}
Код:
enum pInfo
{
	pKey[129],
	pTikis,
	pMask,
    pBoombox,
	pAlreadyBoombox,
	pbuyBoombox,
	pLevel,
	pAdminTime,
	pAdmin,
	pAdminDuty,
	pDonateRank,
	gPupgrade,
	pConnectTime,
	pReg,
	pSex,
	pAge,
	pOrigin,
	pCK,
	pCash,
	pHospital,
	pMuted,
	pPrisonReason[128],
	pPrisonedBy[MAX_PLAYER_NAME],
	pFlag[128],
	pRMuted,
	pRMutedTotal,
	pRMutedTime,
	pVMuted,
	pVMutedTime,
	pFactionModerator,
	pGangModerator,
	pExp,
	pAccount,
	pCrimes,
	pPaintTeam,
	pKills,
	pDeaths,
	pArrested,
	pWantedDeaths,
	pPhoneBook,
	pLottoNr,
	pFishes,
	pToggedVIPChat,
	pBiggestFish,
	pJob,
	pAutoTextReply[64],
	pPhonePrivacy,
	pJob2,
	pNMute,
	pNMuteTotal,
	pADMute,
	pADMuteTotal,
	pHelpMute,
	pPayCheck,
	pHeadValue,
	pJailed,
	pJailTime,
	pWRestricted,
	pMats,
	pPackages,
	pGM,
	pLeader,
	pMember,
	pDivision,
	pFMember,
	pSpeakerPhone,
	pRank,
	pChar,
	pStreetRep,
	pRepHandOut,
	pDetSkill,
	pSexSkill,
	pBoxSkill,
	pLawSkill,
	pMechSkill,
	pJackSkill,
	pCarSkill,
	pTruckSkill,
	pWantedLevel,
	pGunSkill,
	pGoods,
	pSMats,
	pPot,
	pCrack,
	pMeth,
	pSDrugs,
	pMInsure,
	pPcarkey,
	pPcarkey2,
	pPcarkey3,
	pBadgeNumber,
	pRoadblock,
	pHelper,
	pNewsSkill,
	pDrugsSkill,
	pArmsSkill,
	pSmugSkill,
	pCookSkill,
	pFishSkill,
	Float:pHealth,
	Float:pArmor,
	Float:pSArmor,
	Float:pSHealth,
	pInt,
	pLocal,
	pTeam,
	pModel,
	pPnumber,
	pPhousekey,
	pPhousekey2,
	Float:pPos_x,
	Float:pPos_y,
	Float:pPos_z,
	Float:pPos_r,
	pCarLic,
	pSpeedo,
	pFlyLic,
	pBoatLic,
	pFishLic,
	pGunLic,
	pGuns[12],
	pAGuns[12],
	pCarTime,
	pPayDay,
	pPayDayHad,
	pCDPlayer,
	pWins,
	pLoses,
	pAlcoholPerk,
	pDrugPerk,
	pMiserPerk,
	pPainPerk,
	pTraderPerk,
	pTut,
	pWarns,
	pAdjustable,
	pMarried,
	pC4,
	pC4Get,
	pC4Used,
	pMarriedTo[128],
	pLock,
	pLockCar,
	pSprunk,
	pCigar,
	pPole,
	pSpraycan,
	pRope,
	pDice,
	pBombs,
	pDuty,
	pFightStyle,
	pIP[32],
	pBanned,
	pPermaBanned,
	pDisabled,
	pAccent,
	pCHits,
	pFHits,
	pCrates,
	pVW,
	pHouseInvite,
	pClothes,
	pRenting,
	pVehicles,
	pVehFile,
	pVehActive,
	pType1,
	pTempVIP,
	pBuddyInvited,
	pVIPInviteDay,
	pTokens,
	pPaintTokens,
	pType2,
	pType3,
	pType4,
	pType5,
	pDrugsTime,
	pLawyerTime,
	pGangWarn,
	pFactionBanned,
	pCSFBanned,
	pMechTime,
	pSexTime,
	pLawyerFreeTime,
	pGiftTime,
	pContractBy[32],
	pContractDetail[64],
	pBanAppealer,
	pShopTech,
	pUndercover,
	pTogReports,
	pRadio,
	pRadioFreq,
	pDutyHours,
	pAcceptedHelp,
	pAcceptReport,
	pTrashReport,
	pInsurance,
	pTriageTime,
	pVehicleKeys,
	pVehicleKeysFrom,
	pTaxiLicense,
	pTicketTime,
	pScrewdriver,
	pSmslog,
	pSmslog0[256],
	pSmslog1[256],
	pSmslog2[256],
	pSmslog3[256],
	pSmslog4[256],
	pSmslog5[256],
	pSmslog6[256],
	pSmslog7[256],
	pSmslog8[256],
	pSmslog9[256],
	pKillLog0[256],
	pKillLog1[256],
	pKillLog2[256],
	pKillLog3[256],
	pKillLog4[256],
	pKillLog5[256],
	pKillLog6[256],
	pKillLog7[256],
	pKillLog8[256],
	pKillLog9[256],
	pWristwatch,
	pSurveillance,
	pTire,
	pFirstaid,
	pRccam,
	pReceiver,
	pGPS,
	pSweep,
	pSweepLeft,
	pBugged,
	pCheckCash,
	pChecks,
	pWExists,
	Float:pWX,
	Float:pWY,
	Float:pWZ,
	pWVW,
	pWInt,
	pWValue,
	pWObject,
	pWTimer,
	pWSeeds,
	pWarrant[128],
	pJudgeJailTime,
	pJudgeJailType,
	pBeingSentenced,
	pProbationTime,
	pDMIndicators,
	pDMReport0[63],
	pDMReport1[63],
	pDMReport2[63],
	pDMReport3[63],
	pDMReport4[63],
	pDMReport5[63],
	pDMReport6[63],
	pDMReport7[63],
	pDMReport8[63],
	pDMReport9[63],
	pDMKills,
	pOrder,
	pOBlocked,
	pCallsAccepted,
	pPatientsDelivered,
	pLiveBanned,
	pFreezeBank,
	pServiceTime,
	pFirework,
	pWhirlpool,
	pHydration,
	pRacePlayerLaps,
    pScope,
	pDoubleEXP,
	pEXPToken,
	pHasRefund,
};
Add This,
Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
I don't think so if it is this or not,
Код:
new PlayerInfo[MAX_PLAYERS+1][pInfo];
On This Problem | Line #2 :-
Код:
				   GiveDodWeapon(killerid, PlayerInfo[killerid][pWeapon][w], PlayerInfo[killerid][pWeaponAmmo][w]);
What is GiveDodWeapon is it GivePlayerWeapon or not ?

Try This One (Not Sure),
Код:
				   GivePlayerWeapon(killerid, PlayerInfo[killerid][pWeapon][w], PlayerInfo[killerid][pWeaponAmmo][w]);
and if your stock function is,
Код:
stock GiveDodWeapon(playerid, weaponid, ammo)
This Code,
Код:
				   GiveDodWeapon(killerid, PlayerInfo[killerid][pWeapon][w], PlayerInfo[killerid][pWeaponAmmo][w]);
Must Be,
Код:
				   GiveDodWeapon(playerid, PlayerInfo[killerid][pWeapon][w], PlayerInfo[killerid][pWeaponAmmo][w]);
and if this is your stock function,
Код:
stock GiveDodWeapon(killerid, weaponid, ammo)
The Code must be,
Код:
				   GiveDodWeapon(killerid, PlayerInfo[killerid][pWeapon][w], PlayerInfo[killerid][pWeaponAmmo][w]);
On This Problem | Line #3 :-

Make sure you have this :-
Код:
forward Audio_OnSetPack(audiopack[])
On This Problem | Line #4 & #5 & #6 :-

Make sure you have this :-
Код:
			Audio_Seek(playerid, localhandle, seek);
Код:
					Audio_Seek(i, localhandle, seek);
Код:
					Audio_Seek(i, localhandle, seek);
There is no Problem with this, do you have Audio Plugin & Include ?

If you don't have, Download it;

First of all,

Audio Plugin & Include:
[Plugin] Audio Plugin
Pastebin for Audio Include


Check your "PAWNO > includes" Directory, and Look for "audio.inc",

and Check your "Plugins" Directory, and Look for "audio.dll" or "audio.so",

If you don't have "audio.inc" and "audio.dll" or "audio.so",

(NOTE: Make sure you open the same PAWNO that contains all your stuff)

Download it here,

[Plugin] Audio Plugin
Pastebin for Audio Include

Installation:
  1. Copy the Plugin File plugins.
  2. Open server.cfg and add the plugin's name on plugins line.
and/or
  1. Copy the whole include codes in Notepad, Wordpad, etc..
  2. Save it as "include's name.inc", and Save it in "PAWNO > include".
  3. Open your Gamemode Script using PAWNO Compiler.
  4. Add "#include <include's name>" at the Top of your Gamemode Script.
  5. Compile it, Save it, and Finish.
and/or
  1. Download the Include File, Copy it.
  2. Paste it in "PAWNO > include".
  3. Open your Gamemode Script using PAWNO Compiler.
  4. Add "#include <include's name>" at the Top of your Gamemode Script.
  5. Compile it, Save it, and Finish.
Reply


Messages In This Thread
Whats wrong ? - by Lisaax - 07.11.2013, 12:25
Re: 4 errors about Givedodweapon. - by SAMProductions - 07.11.2013, 12:54
Re: 4 errors about Givedodweapon. - by Lisaax - 07.11.2013, 13:24
Re: 4 errors about Givedodweapon. - by SAMProductions - 07.11.2013, 13:26
Re: 4 errors about Givedodweapon. - by SAMProductions - 07.11.2013, 13:30
Re: 4 errors about Givedodweapon. - by Lisaax - 07.11.2013, 13:30
Re: 4 errors about Givedodweapon. - by SAMProductions - 07.11.2013, 13:44
Re: 4 errors about Givedodweapon. - by Lisaax - 07.11.2013, 13:44
Re: 4 errors about Givedodweapon. - by SAMProductions - 07.11.2013, 14:01
Re: 4 errors about Givedodweapon. - by Lisaax - 07.11.2013, 14:14

Forum Jump:


Users browsing this thread: 1 Guest(s)