Error out of index

Započeo Tolja, April 01, 2022, 22:30:55 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Opis : Znaci u igri  mi neradi tipa onplayerentervehicle ... npr napravim poruku kad udem u auto da mi posalje sta ja znam ID Vozila : %d
ali to mi se neispise...  Takoder OnPlayerStateChange mi neradi kako treba...

Server Log: U logu mi izaci ovaj error prilikom svakog ulaska u vozilo.
20:09:00] [debug] Run time error 4: "Array index out of bounds"
[20:09:00] [debug]  Accessing element at index 6 past array upper bound 5
[20:09:00] [debug] AMX backtrace:
[20:09:00] [debug] #0 00830548 in Izlozbena_Vozila (carid=101) at C:\Users\tolic\OneDrive\Desktop\IG LATEST\gamemodes\IGTD.pwn:57291
[20:09:00] [debug] #1 005be5a8 in public ac_OnPlayerStateChange (playerid=0, newstate=2, oldstate=1) at C:\Users\tolic\OneDrive\Desktop\IG LATEST\gamemodes\IGTD.pwn:21827
[20:09:00] [debug] #2 000803a0 in ?? (... <3 arguments>) at C:\Users\tolic\OneDrive\Desktop\Modovi\IG LATEST\pawno\include\nex-ac.inc:6462
[20:09:00] [debug] #3 00029b4c in public WC_OnPlayerStateChange (playerid=0, newstate=2, oldstate=1) at C:\Users\tolic\OneDrive\Desktop\Modovi\IG LATEST\pawno\include\YSI\y_hooks/impl.inc:1118
[20:09:00] [debug] #4 0000d6fc in public OnPlayerStateChange (playerid=0, newstate=2, oldstate=1) at C:\Users\tolic\OneDrive\Desktop\Modovi\IG LATEST\pawno\include\weapon-config.inc:2852
Poslednja Izmena: Maj 01, 2022, 23:16:04 POSLE PODNE od Deleted User

Pise ti sve bukvalno  :D
HTML / CSS / Javascript / Inspect : Entry Masterclass.
ReactJS / Tailwind CSS / PWA / Axios / SCSS / Redux, ViteJS : Entry Masterclass.
C / C++ / C# / C-objective - kroz Pawn Lang : Entry Masterclass
Grupisano Pravljenje Objekata : Filterscript.


Sta je to web development?
To je nesto ono kao, kako bih to rekao, izgubis volju za zivotom i zelis da se ubijes, ali to je okej.
Onda jednostavno shvatis da si bio glup i resis problem, das sam sebi lajk,
skuvas NES 3u1 i pripremis se za sledeci projekat.

Citat: Tolja poslato April 01, 2022, 22:30:55 POSLE PODNE
Opis : Znaci u igri  mi neradi tipa onplayerentervehicle ... npr napravim poruku kad udem u auto da mi posalje sta ja znam ID Vozila : %d
ali to mi se neispise...  Takoder OnPlayerStateChange mi neradi kako treba...

Server Log: U logu mi izaci ovaj error prilikom svakog ulaska u vozilo.
20:09:00] [debug] Run time error 4: "Array index out of bounds"
[20:09:00] [debug]  Accessing element at index 6 past array upper bound 5
[20:09:00] [debug] AMX backtrace:
[20:09:00] [debug] #0 00830548 in Izlozbena_Vozila (carid=101) at C:\Users\tolic\OneDrive\Desktop\IG LATEST\gamemodes\IGTD.pwn:57291
[20:09:00] [debug] #1 005be5a8 in public ac_OnPlayerStateChange (playerid=0, newstate=2, oldstate=1) at C:\Users\tolic\OneDrive\Desktop\IG LATEST\gamemodes\IGTD.pwn:21827
[20:09:00] [debug] #2 000803a0 in ?? (... <3 arguments>) at C:\Users\tolic\OneDrive\Desktop\Modovi\IG LATEST\pawno\include\nex-ac.inc:6462
[20:09:00] [debug] #3 00029b4c in public WC_OnPlayerStateChange (playerid=0, newstate=2, oldstate=1) at C:\Users\tolic\OneDrive\Desktop\Modovi\IG LATEST\pawno\include\YSI\y_hooks/impl.inc:1118
[20:09:00] [debug] #4 0000d6fc in public OnPlayerStateChange (playerid=0, newstate=2, oldstate=1) at C:\Users\tolic\OneDrive\Desktop\Modovi\IG LATEST\pawno\include\weapon-config.inc:2852
E moj tolja kupi naocale

[pawn]20:09:00] [debug] Run time error 4: "Array index out of bounds"
[20:09:00] [debug]  Accessing element at index 6 past array upper bound 5[/pawn]

Imas niz od 5 elemenata, a ti pokusavas pristupiti 6.