18.11.2013, 19:45
Omg, Anyone can help me? Im getting stucked with Undefined player symbol and i have everything, Its just wrong!
Anyone can help me?
Anyone can help me?
CMD:duel(playerid, params[]) { new playerb, string[128]; if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command."); if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command."); if(!aDuty[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You are not on Admin Duty."); if(sscanf(params, "u", playerb)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /duel [playerid]"); if(!IsPlayerLoggedIn(playerb)) return SendClientMessage(playerid, COLOR_GREY, "Invalid player id."); if(EventOn) return SendClientMessage(playerid, COLOR_GREY, "There's a event happening, you cant duel now."); if(DuelOn) return SendClientMessage(playerid, COLOR_GREY, "There is already an duel happening."); PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid); PlayerInfo[playerid][pVW] = GetPlayerVirtualWorld(playerid); format(string, sizeof(string), "AdmWarn: %s has started an duel with %s.", RPN(playerid), RPN(playerb)); SendAdminMessage(COLOR_LIGHTRED, 1, string); SendClientMessage(playerid, COLOR_BLUE, "You are duelling.."); SendClientMessage(playerb, COLOR_BLUE, "You are duelling.."); GetPlayerPos(playerid, eX, eY, eZ); GetPlayerHealth(playerid, eHP); GetPlayerArmour(playerid, eARMOR); for(new i=0; i<13; i++) { GetPlayerWeaponData(playerid, i, PlayerInfo[playerid][pWeapon][i], PlayerInfo[playerid][pWeaponAmmo][i]); } GunsBeingRemoved[playerid] = 1; DuelOn = 1; Duel[playerid] = 1; Duel[playerb] = 1; ResetPlayerWeapons(playerid); /* break */ PlayerInfo[playerb][pInt] = GetPlayerInterior(playerb); PlayerInfo[playerb][pVW] = GetPlayerVirtualWorld(playerb); GetPlayerPos(playerb, eX, eY, eZ); GetPlayerHealth(playerb, eHP); GetPlayerArmour(playerb, eARMOR); for(new i=0; i<13; i++) { GetPlayerWeaponData(playerb, i, PlayerInfo[playerb][pWeapon][i], PlayerInfo[playerb][pWeaponAmmo][i]); } GunsBeingRemoved[playerb] = 1; ResetPlayerWeapons(playerb); SetTimerEx("EnterExitTimer", 5000, false, "i", playerid); GiveDodWeapon(playerid, 24, 200); GiveDodWeapon(playerb, 24, 200); TogglePlayerControllable(playerb, 0); TogglePlayerControllable(playerid, 0); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); SetPlayerHealth(playerb, 100); SetPlayerArmour(playerb, 100); SetTimerEx("EnterExitTimer", 5000, false, "i", playerb); SetPlayerPos(playerb, -257.6650,-862.7711,1188.3394); SetPlayerPos(playerid, -276.1044,-846.8372,1188.3394); SetPlayerVirtualWorld(playerid, 50); SetPlayerVirtualWorld(playerb, 50); SetPlayerInterior(playerb, 3); SetPlayerInterior(playerid, 3); return 1; }
C:\Documents and Settings\Lisa\Bureaublad\VLRP5.pwn(1384) : error 017: undefined symbol "PlayerInfo" C:\Documents and Settings\Lisa\Bureaublad\VLRP5.pwn(1384) : error 029: invalid expression, assumed zero C:\Documents and Settings\Lisa\Bureaublad\VLRP5.pwn(1384) : warning 215: expression has no effect C:\Documents and Settings\Lisa\Bureaublad\VLRP5.pwn(1384) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Lisa\Bureaublad\VLRP5.pwn(1384) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
PlayerInfo[playerid][pWeapon][0] = weaponid;
stock GiveDodWeapon(playerid, weaponid) { 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, pWeapon[12], 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 }; new PlayerInfo[MAX_PLAYERS][pInfo];
PlayerInfo[playerid][pWeapon][0] = weaponid;
pInfo[playerid][pWeapon][0] = weaponid;