Problem(error/warning): vaš odgovor Mod padne na 13 igraca
Dio skripte: [ pawn ]vaš odgovor[ /pawn ] max players je podesen na 600
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ]
[20:08:48] [debug] Run time error 4: "Array index out of bounds"
[20:08:48] [debug] Accessing element at negative index -1
[20:08:48] [debug] AMX backtrace:
[20:08:48] [debug] #0 000c20e4 in public CB_OnPlayerDisconnect (0, 1) from test.amx
[20:08:48] [debug] #1 00024ea8 in public SSCANF_OnPlayerDisconnect (0, 1) from test.amx
[20:08:48] [debug] #2 0001c8ec in public Itter_OnPlayerDisconnect (0, 1) from test.amx
[20:08:48] [debug] #3 native CallLocalFunction () from samp-server.exe
[20:08:48] [debug] #4 0001be78 in ?? (0, 1) from test.amx
[20:08:48] [debug] #5 00006498 in public OnPlayerDisconnect (0, 1) from test.amx
Slika/video ingame problema(obavezno ako je ingame problem): zanima me do cega moze biti..
Koji mod koristis
Citat: .tayloR ãƒ,, poslato Februar 23, 2020, 20:29:02 POSLE PODNE
Koji mod koristis
Mod je od 0 a za ovaj bug se skontalo tek kad je bio open tako da ne znam sta je uzrok.
Posalji OnPlayerDisconnect i po mogucnosti OnPlayerConnect, pokusaj da kompajlujes sa -d3 flagom da bi dobio liniju koja izaziva crash i posalji server log kada se dogodi pad servera. Da li ti se zaledi ceo server da ne mozes bukvalno nista raditi?
Citat: algorhitmically poslato Februar 23, 2020, 21:14:46 POSLE PODNE
Posalji OnPlayerDisconnect i po mogucnosti OnPlayerConnect, pokusaj da kompajlujes sa -d3 flagom da bi dobio liniju koja izaziva crash i posalji server log kada se dogodi pad servera. Da li ti se zaledi ceo server da ne mozes bukvalno nista raditi?
Citat: algorhitmically poslato Februar 23, 2020, 21:14:46 POSLE PODNE
Posalji OnPlayerDisconnect i po mogucnosti OnPlayerConnect, pokusaj da kompajlujes sa -d3 flagom da bi dobio liniju koja izaziva crash i posalji server log kada se dogodi pad servera. Da li ti se zaledi ceo server da ne mozes bukvalno nista raditi?
Da zaledi se server ne mozes nista drugo raditi tdovi i sve nestanu sve bukvalno..Ali server ne padne.
Imas li neki drugi kontakt svoj,mnogo bi mi pomogao?
Evo podataka
Server log kada predje se 12 igrac
[join] Kake_Sranjeeeee has joined the server (13:127.0.0.1)
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 13 past array upper bound 12
[debug] AMX backtrace:
[debug] #0 001a99cc in ?? (13) from Streets-Creed.amx
[debug] #1 000ac3a4 in public RL_OnPlayerConnect (13) from test.amx
[debug] #2 native CallLocalFunction () from samp-server.exe
[debug] #3 00023e40 in public SSCANF_OnPlayerConnect (13) from test.amx
[debug] #4 0001c5dc in public Itter_OnPlayerConnect (13) from test.amx
[debug] #5 native CallLocalFunction () from samp-server.exe
[debug] #6 0001b850 in ?? (13) from test.amx
[debug] #7 00006338 in public OnPlayerConnect (13) from test.amx
public OnPlayerConnect(playerid)
{
//Nove stvari//
ObrisiObjekte(playerid);
//Kraj novi stvari//
KillTimer(FadeUprazno[playerid]);
FadeUprazno[playerid]=SetTimerEx("FadeTimer", 0, false, "i", playerid);
//SetPlayerCameraPos(playerid, 1351.9902, -1311.7251, 123.6949);
//SetPlayerCameraLookAt(playerid, 1352.9714, -1311.5173, 123.6050);
//SetPlayerCamera(playerid, 1351.9902, -1311.7251, 123.6949, 1352.9714, -1311.5173, 123.6050, false);
TogglePlayerSpectating(playerid, true);
SetPlayerColor(playerid, 0xFFFFFF00);
OpceVarijable(playerid);
PlayerTDovi(playerid);
MapIkone(playerid);
ResetPlayerWeapons(playerid);
PlayerTextDrawHide(playerid, DutyTD[playerid]);
PlayerVariables[playerid][pSaleCar]=INVALID_VEHICLE_ID;
public OnPlayerDisconnect(playerid, reason)
{
if(IgracSeRegistruje[playerid] == true) RegisterTDControlMain(playerid, false);
if(IgracSeLogira[playerid] == true) LoginTDControlMain(playerid, false);
DestroyPlayerTextDraws(playerid);
OpceVarijable(playerid);
Stvariizdisconecta(playerid);
new string[64];
switch(reason)
{
case 0: format(string, sizeof string, "* %s je otisao sa servera. (crash)", Ime(playerid));
case 1: format(string, sizeof string, "* %s je otisao sa servera. (/quit)", Ime(playerid));
case 2: format(string, sizeof string, "* %s je otisao sa servera. (kick/ban)", Ime(playerid));
}
ProxDetector(15.0, playerid, string, 0x88AA62FF, 0x88AA62FF, 0x88AA62FF, 0x88AA62FF, 0x88AA62FF);
Mozes li compile pod -d3 flagom, samo dodas u pawno opcijama pod flagovima: -d3.
Treba da ti ispise liniju na kojoj pravi problem, mozda ti i nije u gamemode problem, mozda u nekom drugom fajlu.
Citat: algorhitmically poslato Februar 23, 2020, 22:18:13 POSLE PODNE
Mozes li compile pod -d3 flagom, samo dodas u pawno opcijama pod flagovima: -d3.
Treba da ti ispise liniju na kojoj pravi problem, mozda ti i nije u gamemode problem, mozda u nekom drugom fajlu.
Params=-d3
Ne ispise nijedan warning ni error
Probaj ove:
Params=-r -w 203 -d3
Citat: V01D poslato Februar 23, 2020, 22:22:28 POSLE PODNE
Probaj ove:
Params=-r -w 203 -d3
Isto opet
samo mi izbaci 2 warninga kao sto uvijek mada samo ih izbrisem,nista ne znace..
C:\Users\kakvi\Desktop\sdada\scmod\gamemodes\newscript11.pwn(25610) : warning 203: symbol is never used: "IsPlayerDead"
C:\Users\kakvi\Desktop\sdada\scmod\gamemodes\newscript11.pwn(25610) : warning 203: symbol is never used: "LoopingAnim"
Sad pokreni server i posalji server log sa tim na 13 igraca, ubaci botove pa isprobaj.
[22:37:36] [connection] 127.0.0.1:51041 requests connection cookie.
[22:37:36] [connection] incoming connection: 127.0.0.1:51041 id: 0
[22:37:36] [join] Kake_Sranjeeeee has joined the server (0:127.0.0.1)
[22:37:49] [connection] 127.0.0.1:51042 requests connection cookie.
[22:37:49] [connection] incoming connection: 127.0.0.1:51042 id: 1
[22:37:49] [join] Oda_D has joined the server (1:127.0.0.1)
[22:37:57] [connection] 127.0.0.1:51043 requests connection cookie.
[22:37:57] [connection] incoming connection: 127.0.0.1:51043 id: 2
[22:37:57] [join] Oda_Da has joined the server (2:127.0.0.1)
[22:38:04] [connection] 127.0.0.1:51044 requests connection cookie.
[22:38:04] [connection] incoming connection: 127.0.0.1:51044 id: 3
[22:38:04] [join] Oda_Daa has joined the server (3:127.0.0.1)
[22:38:10] [connection] 127.0.0.1:51045 requests connection cookie.
[22:38:10] [connection] incoming connection: 127.0.0.1:51045 id: 4
[22:38:11] [join] Oda_Daaa has joined the server (4:127.0.0.1)
[22:38:17] [connection] 127.0.0.1:51046 requests connection cookie.
[22:38:17] [connection] incoming connection: 127.0.0.1:51046 id: 5
[22:38:17] [join] Odda_Daaa has joined the server (5:127.0.0.1)
[22:38:23] [connection] 127.0.0.1:51047 requests connection cookie.
[22:38:23] [connection] incoming connection: 127.0.0.1:51047 id: 6
[22:38:24] [join] Odda_Daaaa has joined the server (6:127.0.0.1)
[22:38:38] [connection] 127.0.0.1:59111 requests connection cookie.
[22:38:38] [connection] incoming connection: 127.0.0.1:59111 id: 7
[22:38:38] [join] Tst_Jaj has joined the server (7:127.0.0.1)
[22:38:45] [connection] 127.0.0.1:59112 requests connection cookie.
[22:38:45] [connection] incoming connection: 127.0.0.1:59112 id: 8
[22:38:46] [join] Tst_Jaja has joined the server (8:127.0.0.1)
[22:38:52] [connection] 127.0.0.1:59113 requests connection cookie.
[22:38:52] [connection] incoming connection: 127.0.0.1:59113 id: 9
[22:38:52] [join] Tst_Jajaa has joined the server (9:127.0.0.1)
[22:39:06] [connection] 127.0.0.1:59114 requests connection cookie.
[22:39:06] [connection] incoming connection: 127.0.0.1:59114 id: 10
[22:39:07] [join] Tst_Jajaaa has joined the server (10:127.0.0.1)
[22:39:13] [connection] 127.0.0.1:59115 requests connection cookie.
[22:39:13] [connection] incoming connection: 127.0.0.1:59115 id: 11
[22:39:13] [join] Tst_Jajaaaa has joined the server (11:127.0.0.1)
[22:39:50] [connection] 127.0.0.1:54023 requests connection cookie.
[22:39:50] [connection] incoming connection: 127.0.0.1:54023 id: 12
[22:39:51] [join] Tst_Jajaaaaa has joined the server (12:127.0.0.1)
[22:40:12] [connection] 192.168.0.14:58242 requests connection cookie.
[22:40:13] [connection] incoming connection: 192.168.0.14:58242 id: 13
[22:40:14] [join] Bake_Skillz has joined the server (13:192.168.0.14)
[22:40:14] [debug] Run time error 4: "Array index out of bounds"
[22:40:14] [debug] Accessing element at index 13 past array upper bound 12
[22:40:14] [debug] AMX backtrace:
[22:40:14] [debug] #0 00151d10 in ?? (13) from newscript11.amx
[22:40:14] [debug] #1 000837d8 in public RL_OnPlayerConnect (13) from newscript11.amx
[22:40:14] [debug] #2 native CallLocalFunction () from samp-server.exe
[22:40:14] [debug] #3 00023e40 in public SSCANF_OnPlayerConnect (13) from newscript11.amx
[22:40:14] [debug] #4 0001c5dc in public Itter_OnPlayerConnect (13) from newscript11.amx
[22:40:14] [debug] #5 native CallLocalFunction () from samp-server.exe
[22:40:14] [debug] #6 0001b850 in ?? (13) from newscript11.amx
[22:40:14] [debug] #7 00006338 in public OnPlayerConnect (13) from newscript11.amx
[22:40:42] [debug] Server received interrupt signal
[22:40:42] [debug] Native backtrace:
[22:40:42] [debug] #0 776207ec in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[22:40:42] [debug] #1 75af2e1f in ?? () from C:\Windows\System32\KERNELBASE.dll
[22:40:42] [debug] #2 0048d53c in ?? () from samp-server.exe
[22:40:42] [debug] #3 0049b4a1 in ?? () from samp-server.exe
[22:40:42] [debug] #4 0049b4b1 in ?? () from samp-server.exe
[22:40:42] --- Server Shutting Down.
[22:40:44] [part] Kake_Sranjeeeee has left the server (0:0)
[22:40:44] [part] Oda_D has left the server (1:0)
[22:40:44] [part] Oda_Da has left the server (2:0)
[22:40:44] [part] Oda_Daa has left the server (3:0)
[22:40:44] [part] Oda_Daaa has left the server (4:0)
[22:40:44] [part] Odda_Daaa has left the server (5:0)
[22:40:44] [part] Odda_Daaaa has left the server (6:0)
[22:40:44] [part] Tst_Jaj has left the server (7:0)
[22:40:44] [part] Tst_Jaja has left the server (8:0)
[22:40:44] [part] Tst_Jajaa has left the server (9:0)
[22:40:44] [part] Tst_Jajaaa has left the server (10:0)
[22:40:44] [part] Tst_Jajaaaa has left the server (11:0)
[22:40:44] [part] Tst_Jajaaaaa has left the server (12:0)
[22:40:44] [part] Bake_Skillz has left the server (13:0)
[22:40:45]
[22:40:45] ===============================
[22:40:45] sscanf plugin unloaded.
[22:40:45] ===============================
[22:40:45]
*** Streamer Plugin v2.7.9 by Incognito unloaded ***
Posalji sta ti je sve u OnPlayerConnect ili neki niz postavljen na 12 ili 13 elemenata.
Evo nekih stvari sa [13] sa [12] nema..
[pawn]
new PlayerText:InfoTextdraws[MAX_PLAYERS][13];
[/pawn]
[pawn]//ENUMATOR ANTI WEAPON
enum User
{
Weapon[13],
Ammo[13],
}[/pawn]
[pawn]
public OnPlayerConnect(playerid)
{
//Nove stvari//
ObrisiObjekte(playerid);
//Kraj novi stvari//
KillTimer(FadeUprazno[playerid]);
FadeUprazno[playerid]=SetTimerEx("FadeTimer", 0, false, "i", playerid);
//SetPlayerCameraPos(playerid, 1351.9902, -1311.7251, 123.6949);
//SetPlayerCameraLookAt(playerid, 1352.9714, -1311.5173, 123.6050);
//SetPlayerCamera(playerid, 1351.9902, -1311.7251, 123.6949, 1352.9714, -1311.5173, 123.6050, false);
TogglePlayerSpectating(playerid, true);
SetPlayerColor(playerid, 0xFFFFFF00);
OpceVarijable(playerid);
PlayerTDovi(playerid);
MapIkone(playerid);
ResetPlayerWeapons(playerid);
PlayerTextDrawHide(playerid, DutyTD[playerid]);
PlayerVariables[playerid][pSaleCar]=INVALID_VEHICLE_ID;
[/pawn]