Cedry2k Posted December 14, 2018 Share Posted December 14, 2018 Username : Cedry2k Problema întâlnită: am incercat sa pornesc gm burned si apare asta. Detalii despre problemă:13:15:55] Clan zones: 20 [13:15:55] [debug] Run time error 4: "Array index out of bounds" [13:15:55] [debug] Accessing element at index 23 past array upper bound 22 [13:15:55] [debug] AMX backtrace: [13:15:55] [debug] #0 000a6e20 in public LoadBizz () from Gm.amx [13:15:55] [debug] #1 000199f0 in public L_AFK_OnGM () from Gm.amx [13:15:55] [debug] #2 native CallLocalFunction () from samp-server.exe [13:15:55] [debug] #3 00012e88 in public zcmd_OnGameModeInit () from Gm.amx [13:15:55] [debug] #4 native CallLocalFunction () from samp-server.exe [13:15:55] [debug] #5 000129d0 in public SSCANF_OnGameModeInit () from Gm.amx [13:15:55] [debug] #6 0000cd38 in public Itter_OnGameModeInit () from Gm.amx [13:15:55] [debug] #7 native CallLocalFunction () from samp-server.exe [13:15:55] [debug] #8 0000c008 in public ScriptInit_OnGameModeInit () from Gm.amx [13:15:55] [debug] #9 0000afe8 in public PZone_OnGameModeInit () from Gm.amx [13:15:55] [debug] #10 native CallLocalFunction () from samp-server.exe [13:15:55] [debug] #11 00000c4c in public OnGameModeInit () from Gm.amx [13:15:55] Number of vehicle models: 0 Ce ai încercat să faci înainte să postezi?: Cod sursa (recomandat pastebin.com) : Alte detalii : Link to comment Share on other sites More sharing options...
Administrator Leonard Posted December 14, 2018 Administrator Share Posted December 14, 2018 "Accessing elem ent at index 23 past array upper bound 22" Vad ca ai eroare la LoadBizz, arata functia + variabila principala, aia new bizinfo sau cum ai tu. www.liberty.mp Link to comment Share on other sites More sharing options...
Matt Posted December 14, 2018 Share Posted December 14, 2018 Undeva ai depasit limita unui vector. Spre exemplu ai definit vectorul v[100] si ai incercat sa accesezi indexul 105, care nu este posibil. (deoarece acest vector are index de la 0 la 99) Arata-ne functia LoadBizz. Respecta si vei fi respectat. BigInt Pawn: Pacman C++: Snake C++: Minesweeper C++: mattbb.cash leaks.ro Link to comment Share on other sites More sharing options...
Cedry2k Posted December 14, 2018 Author Share Posted December 14, 2018 https://pastebin.com/mmPF9khH Link to comment Share on other sites More sharing options...
Cedry2k Posted December 14, 2018 Author Share Posted December 14, 2018 new BizzInfo[23][bInfo]; Link to comment Share on other sites More sharing options...
Matt Posted December 14, 2018 Share Posted December 14, 2018 Probabil ai mai multe biz-uri in baza decat ai initializat tu vectorul. Inlocuieste: new BizzInfo[23][bInfo]; cu new BizzInfo[100][bInfo]; Respecta si vei fi respectat. BigInt Pawn: Pacman C++: Snake C++: Minesweeper C++: mattbb.cash leaks.ro Link to comment Share on other sites More sharing options...
Administrator Leonard Posted December 14, 2018 Administrator Share Posted December 14, 2018 new BizzInfo[23][bInfo]; -> new BizzInfo[100][bInfo]; www.liberty.mp Link to comment Share on other sites More sharing options...
Cedry2k Posted December 14, 2018 Author Share Posted December 14, 2018 am rezolvat ms mult mane Link to comment Share on other sites More sharing options...
Administrator Leonard Posted December 14, 2018 Administrator Share Posted December 14, 2018 Problema a fost rezolvată. Topic închis! www.liberty.mp Link to comment Share on other sites More sharing options...
Recommended Posts