Oko FCNPC


Započeo nemy, Novembar 08, 2021, 17:13:56 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Nije error ni warning
Deo skripte:
//

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
[16:59:03] [npc:join] IzdajnikZemunskogKlana has joined the server (29:127.0.0.1)
[16:59:12] SR-Jugoslavija RP Community | wwww.SR-Jugoslavija-rp.com
[16:59:12] Uspesno je ucitan mod..
[16:59:12] Verzija: SRJ:RP v1.0 
[16:59:12] SRJ:RP v1.0.0
[16:59:12] Number of vehicle models: 23
[16:59:12] [debug] Run time error 4: "Array index out of bounds"
[16:59:12] [debug]  Accessing element at index 13 past array upper bound 12
[16:59:12] [debug] AMX backtrace:
[16:59:12] [debug] #0 000ea304 in ?? (29) from YMOD.amx
[16:59:12] [debug] #1 004a47b4 in public ppb_OnPlayerDisconnect (29, 2) from YMOD.amx
[16:59:12] [debug] #2 00025718 in public CB_OnPlayerDisconnect (29, 2) from YMOD.amx
[16:59:12] [debug] #3 0001af4c in public Iter_OnPlayerDisconnect (29, 2) from YMOD.amx
[16:59:12] [debug] #4 native CallLocalFunction () from samp-server.exe
[16:59:12] [debug] #5 000186b0 in ?? (29, 2) from YMOD.amx
[16:59:12] [debug] #6 0000c118 in public SSCANF_OnPlayerDisconnect (29, 2) from YMOD.amx
[16:59:12] [debug] #7 native CallLocalFunction () from samp-server.exe
[16:59:12] [debug] #8 00000a38 in public OnPlayerDisconnect (29, 2) from YMOD.amx
[16:59:12] [debug] #9 native Kick () from samp-server.exe
[16:59:12] [debug] #10 00156830 in public KickIgraca (29) from YMOD.amx
[16:59:12] [npc:part] IzdajnikZemunskogKlana has left the server (29:2)
Poslednja Izmena: Novembar 10, 2021, 15:35:22 POSLE PODNE od M Ө M Σ N Z I
Zz
fakenexsus


hitno mi neko help
Zz
fakenexsus


[16:59:12] [debug] Run time error 4: "Array index out of bounds"
[16:59:12] [debug]  Accessing element at index 13 past array upper bound 12
[16:59:12] [debug] AMX backtrace:
[16:59:12] [debug] #0 000ea304 in ?? (29) from YMOD.amx
[16:59:12] [debug] #1 004a47b4 in public ppb_OnPlayerDisconnect (29, 2) from YMOD.amx


Uci da citas. 
Array index out of bounds
Znaci da pristupas elementu niza koji je veci od samog niza (ili je u minus sto ne moze biti)

Accessing element at index 13 past array upper bound 12
Kaze ti da pristupas elementu niza/arraya 13 dok je on velicine 12
?? znaci da nezna koja je funkcija sto ce verovatno biti neki stock ili slicno (nije public)
I ppb_OnPlayerDisconnect (29, 2) ti kaze koji je public pre te funkcije bio pozvan kao i to sta je bilo prosledjeno kao argument(i), u tvom slucaju 29 i 2, gde je 29 playerid a 2 je leavereason (sto je kick/ban)