never heard of this problem
#1

pawn Код:
00:00:35] [debug] #0 00033a3c in ?? (0x00000000) from d-rp.amx
[00:00:35] [debug] #1 001ec7b0 in public NOPSetPlayerPos () from d-rp.amx
[00:00:36] [debug] Run time error 4: "Array index out of bounds"
[00:00:36] [debug] Accessing element at index 9 past array upper bound 8
[00:00:36] [debug] AMX backtrace:
[00:00:36] [debug] #0 00033a3c in ?? (0x00000000) from d-rp.amx
[00:00:36] [debug] #1 001ec7b0 in public NOPSetPlayerPos () from d-rp.amx
What is this for error... i don't understand shit of it
Reply
#2

You're trying to access an array index that does not exist.

You probably have some array in your script
pawn Код:
new Something[8];
and then try to access an index that does not exist:
pawn Код:
Something[8]
while the max would be Something[7]
Reply
#3

inside the function "public NOPSetPlayerPos ()" there somewhere is an array used that has been defined like:

pawn Код:
new array[9];
Your code simply exceeds this limit (upper bound at 8 ).
Loops often cause this.

But withouth the certain piece of code we wont able to tell you


regards, wolf.
Reply
#4

pawn Код:
forward NOPSetPlayerPos();
public NOPSetPlayerPos()
{
    // NOP Vehicle Cheat
    foreach(Player, playerid)
    {
        if(GetPlayerState(playerid) != PLAYER_STATE_PASSENGER)
        {
            if(IsLeoVehicle(GetPlayerVehicleID(playerid)) && PlayerInfo[playerid][pFac] != 1 || IsTruckerVehicle(GetPlayerVehicleID(playerid)) && PlayerInfo[playerid][pJob] != JOB_TRUCKER)
            {
                new string[128];
                format(string, sizeof(string), "AdmWarn: %s is either desynced or using NOP hacks. (Driving Restricted Vehicle)", RPN(playerid));
                SendAdminMessage(COLOR_DARKRED, 1, string);
                RemovePlayerFromVehicle(playerid);
            }
        }
    }
    return 1;
}
Nope
Reply
#5

You could show some enum/array definitions used in this function.
Reply
#6

Well i got more of them
pawn Код:
# d-rp.amx
[00:10:37] [debug] Run time error 4: "Array index out of bounds"
[00:10:37] [debug] Accessing element at index 9 past array upper bound 8
[00:10:37] [debug] AMX backtrace:
[00:10:37] [debug] #0 000332a8 in ?? (0x00000085) from d-rp.amx
[00:10:37] [debug] #1 0006d464 in public OnVehicleSpawn (0x00000085) from d-rp.amx
[00:10:37] [debug] #2 native SetVehicleToRespawn () [080d46b0] from samp03svr
[00:10:37] [debug] #3 0006029c in public RL_OnGameModeInit () from d-rp.amx
[00:10:37] [debug] #4 native CallLocalFunction () [080dce40] from samp03svr
[00:10:37] [debug] #5 000122fc in public zcmd_OnGameModeInit () from d-rp.amx
[00:10:37] [debug] #6 native CallLocalFunction () [080dce40] from samp03svr
[00:10:37] [debug] #7 00010468 in public SSCANF_OnGameModeInit () from d-rp.amx
[00:10:37] [debug] #8 native CallLocalFunction () [080dce40] from samp03svr
[00:10:37] [debug] #9 0000a744 in public Itter_OnGameModeInit () from d-rp.amx
[00:10:37] [debug] #10 native CallLocalFunction () [080dce40] from samp03svr
[00:10:37] [debug] #11 00009b74 in public ScriptInit_OnGameModeInit () from d-rp.amx
[00:10:37] [debug] #12 00008b54 in public OnGameModeInit () from d-rp.amx
[00:10:37] [debug] Run time error 4: "Array index out of bounds"
[00:10:37] [debug] Accessing element at index 9 past array upper bound 8
[00:10:37] [debug] AMX backtrace:
[00:10:37] [debug] #0 000332a8 in ?? (0x00000086) from d-rp.amx
[00:10:37] [debug] #1 0006d464 in public OnVehicleSpawn (0x00000086) from d-rp.amx
[00:10:37] [debug] #2 native SetVehicleToRespawn () [080d46b0] from samp03svr
[00:10:37] [debug] #3 0006029c in public RL_OnGameModeInit () from d-rp.amx
[00:10:37] [debug] #4 native CallLocalFunction () [080dce40] from samp03svr
[00:10:37] [debug] #5 000122fc in public zcmd_OnGameModeInit () from d-rp.amx
[00:10:37] [debug] #6 native CallLocalFunction () [080dce40] from samp03svr
[00:10:37] [debug] #7 00010468 in public SSCANF_OnGameModeInit () from d-rp.amx
[00:10:37] [debug] #8 native CallLocalFunction () [080dce40] from samp03svr
[00:10:37] [debug] #9 0000a744 in public Itter_OnGameModeInit () from d-rp.amx
[00:10:37] [debug] #10 native CallLocalFunction () [080dce40] from samp03svr
[00:10:37] [debug] #11 00009b74 in public ScriptInit_OnGameModeInit () from d-rp.amx
[00:10:37] [debug] #12 00008b54 in public OnGameModeInit () from d-rp.amx
[00:10:37]
-----------
Reply
#7

how are u defining your enums? (e.g. PlayerInfo[playerid][pFac])
Reply
#8

pawn Код:
enum pInfo
{
    // Temp Values
    pLoggedIn,
    pSpawn,
    // Permanent Values
    CMD1[129],
    CMD2[129],
    CMD3[129],
    CMD4[129],
    CMD5[129],
    pCoins,
    pIP[16],
    pOwner,
    pLevel,
    pArmorUpgrade,
    pUpgradePoints,
    pMinutes,
    pTMinutes,
    pHours,
    pGender,
    pAge,
    pMoney,
    pBandage,
    pGold,
    pBank,
    pModel,
    pAdmin,
    pMod,
    dealership,
    aMask[128],
    pMapper,
    pBanned,
    Float:pX,
    Float:pY,
    Float:pZ,
    pInt,
    pVW,
    pVehVW,
    pWalkStyle,
    pNeon,
    pVNeon,
    pVVNeon,
    pTGun[2],
    pTGunAmmo[2],
    pvTGun[2],
    pvTGunAmmo[2],
    pFac,
    pFacRank,
    pFacLeader,
    pWeapon[13],
    pWeaponAmmo[13],
    pHospital,
    pFacDuty,
    pFacDiv,
    pFacDivLeader,
    pBiz,
    pVBiz,
    pHouse,
    pVHouse,
    pGarage,
    pVGarage,
    pJob,
    pJobSkill[MAX_JOBS],
    pJackSkill,
    pTPackages,
    pMPackages,
    pDPackages,
    pMaterials,
    pMMaterials,
    pMMPackages,
    pHMaterials,
    pHPackages,
    pWeed,
    pcocaine,
    pTWeed,
    pTcocaine,
    pvTWeed,
    pvTcocaine,
    pHasCellphone,
    pCellphone,
    pPhonebook,
    pDice,
    pCigar,
    pSprunk,
    pSpray,
    pRope,
    pBlindfold,
    pWT,
    pWTC,
    pGas,
    pRadio,
    Float:pHealth,
    Float:pArmor,
    pInternet,
    pPrison,
    pPrisonTime,
    pPrisonReason[64],
    pPrisonBy[32],
    pWanted,
    pWanted1[64],
    pWanted2[64],
    pWanted3[64],
    pWanted4[64],
    pWanted5[64],
    pWanted6[64],
    pCrimes,
    pArrested,
    pKicks,
    pBans,
    pPrisons,
    pContract,
    pContractBy[32],
    pTutorial,
    pWarns,
    pWarn1[64],
    pWarn2[64],
    pWarn3[64],
    pFlag[65],
    pNMute,
    pRMute,
    pADMute,
    pSpawnFreeze,
    pFam,
    pFamRank,
    pCSuccess,
    pCFail,
    pDeath,
    pKill,
    pHelper,
    pExp,
    pVeh,
    pBugged,
    pNumber,
    vModel,
    Float:vX,
    Float:vY,
    Float:vZ,
    Float:vA,
    vC1,
    vC2,
    vPJ,
    pVehMod[14],
    vLocked,
    pGangMod,
    pHelpermod,
    pFacMod,
    pBanAppealer,
    pCarLic,
    pFlyLic,
    pJetpack,
    pWepLic,
    pAccent[16],
    // VIP
    pVIP,
    pVIPDay,
    pVIPMonth,
    pVIPHour,
    pVIPTemp,
    // VIP Job
    pVIPJob,
    // VIP Car
    pVVeh,
    vVModel,
    Float:vVX,
    Float:vVY,
    Float:vVZ,
    Float:vVA,
    vVC1,
    vVC2,
    vVPJ,
    pVVehMod[14],
    vVLocked,
    pVVVeh,
    vVVModel,
    Float:vVVX,
    Float:vVVY,
    Float:vVVZ,
    Float:vVVA,
    vVVC1,
    vVVC2,
    vVVPJ,
    pVVVehMod[14],
    vVVLocked,
    pVIPBuddy,
    pDeliverTruck,
    pNew,
    pRefPoints,
    pTester,
    pFightStyle,
    pScope,
    pCookies,
    pOldskool,
    // Toys
    pToyModel[10],
    Float:pToyX[10],
    Float:pToyY[10],
    Float:pToyZ[10],
    Float:pToyRX[10],
    Float:pToyRY[10],
    Float:pToyRZ[10],
    Float:pToySX[10],
    Float:pToySY[10],
    Float:pToySZ[10],
    pReward,
    pFish[5],
    pLoyal,
    pLoyalTag,
    pLPoints,
    pStoned,
    pGate[3],
    pSafeAdmin
}
like this and what you said
Reply
#9

Make sure player vehicle id is valid and set your script debug level to 3.
https://github.com/Zeex/samp-plugin-...ith-debug-info
Reply
#10

Quote:
Originally Posted by RedCrossER
Посмотреть сообщение
Make sure player vehicle id is valid and set your script debug level to 3.
what what?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)