Mod padne na 13 igraca

Započeo skraipter
23. Feb. 2020. Zaključano
1,042
pregleda
13
postova
skraipter
2
Rookie
23. Feb. 2020.
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] Run time error 4: "Array index out of bounds"
[20:08:48]   Accessing element at negative index -1
[20:08:48] AMX backtrace:
[20:08:48] #0 000c20e4 in public CB_OnPlayerDisconnect (0, 1) from test.amx
[20:08:48] #1 00024ea8 in public SSCANF_OnPlayerDisconnect (0, 1) from test.amx
[20:08:48] #2 0001c8ec in public Itter_OnPlayerDisconnect (0, 1) from test.amx
[20:08:48] #3 native CallLocalFunction () from samp-server.exe
[20:08:48] #4 0001be78 in ?? (0, 1) from test.amx
[20:08:48] #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..
Taylor Script
4
Made Man
23. Feb. 2020.
Koji mod koristis
skraipter
2
Rookie
23. Feb. 2020.
.tayloR ツ wrote on February 23, 2020, 7:29 pm:
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.
algorhitmically
4
Shot Caller
23. Feb. 2020.
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?
skraipter
2
Rookie
23. Feb. 2020.
algorhitmically wrote on February 23, 2020, 8:14 pm:
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?


algorhitmically wrote on February 23, 2020, 8:14 pm:
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

Kake_Sranjeeeee has joined the server (13:127.0.0.1)
Run time error 4: "Array index out of bounds"
  Accessing element at index 13 past array upper bound 12
AMX backtrace:
#0 001a99cc in ?? (13) from Streets-Creed.amx
#1 000ac3a4 in public RL_OnPlayerConnect (13) from test.amx
#2 native CallLocalFunction () from samp-server.exe
#3 00023e40 in public SSCANF_OnPlayerConnect (13) from test.amx
#4 0001c5dc in public Itter_OnPlayerConnect (13) from test.amx
#5 native CallLocalFunction () from samp-server.exe
#6 0001b850 in ?? (13) from test.amx
#7 00006338 in public OnPlayerConnect (13) from test.amx


public OnPlayerConnect(playerid)
{
//Nove stvari//
    ObrisiObjekte(playerid);
    //Kraj novi stvari//
    KillTimer(FadeUprazno);
    FadeUprazno=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);

    PlayerVariables=INVALID_VEHICLE_ID;



public OnPlayerDisconnect(playerid, reason)
{
    if(IgracSeRegistruje == true) RegisterTDControlMain(playerid, false);
    if(IgracSeLogira == true) LoginTDControlMain(playerid, false);
    DestroyPlayerTextDraws(playerid);
    OpceVarijable(playerid);
    Stvariizdisconecta(playerid);
    new string;
    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);
algorhitmically
4
Shot Caller
23. Feb. 2020.
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.
skraipter
2
Rookie
23. Feb. 2020.
algorhitmically wrote on February 23, 2020, 9:18 pm:
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
Skrilew
6
Godfather
23. Feb. 2020.
Probaj ove:
Params=-r -w 203 -d3
skraipter
2
Rookie
23. Feb. 2020.
V01D wrote on February 23, 2020, 9:22 pm:
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"
algorhitmically
4
Shot Caller
23. Feb. 2020.
Sad pokreni server i posalji server log sa tim na 13 igraca, ubaci botove pa isprobaj.
skraipter
2
Rookie
23. Feb. 2020.

[22:37:36] 127.0.0.1:51041 requests connection cookie.
[22:37:36] incoming connection: 127.0.0.1:51041 id: 0
[22:37:36] Kake_Sranjeeeee has joined the server (0:127.0.0.1)
[22:37:49] 127.0.0.1:51042 requests connection cookie.
[22:37:49] incoming connection: 127.0.0.1:51042 id: 1
[22:37:49] Oda_D has joined the server (1:127.0.0.1)
[22:37:57] 127.0.0.1:51043 requests connection cookie.
[22:37:57] incoming connection: 127.0.0.1:51043 id: 2
[22:37:57] Oda_Da has joined the server (2:127.0.0.1)
[22:38:04] 127.0.0.1:51044 requests connection cookie.
[22:38:04] incoming connection: 127.0.0.1:51044 id: 3
[22:38:04] Oda_Daa has joined the server (3:127.0.0.1)
[22:38:10] 127.0.0.1:51045 requests connection cookie.
[22:38:10] incoming connection: 127.0.0.1:51045 id: 4
[22:38:11] Oda_Daaa has joined the server (4:127.0.0.1)
[22:38:17] 127.0.0.1:51046 requests connection cookie.
[22:38:17] incoming connection: 127.0.0.1:51046 id: 5
[22:38:17] Odda_Daaa has joined the server (5:127.0.0.1)
[22:38:23] 127.0.0.1:51047 requests connection cookie.
[22:38:23] incoming connection: 127.0.0.1:51047 id: 6
[22:38:24] Odda_Daaaa has joined the server (6:127.0.0.1)
[22:38:38] 127.0.0.1:59111 requests connection cookie.
[22:38:38] incoming connection: 127.0.0.1:59111 id: 7
[22:38:38] Tst_Jaj has joined the server (7:127.0.0.1)
[22:38:45] 127.0.0.1:59112 requests connection cookie.
[22:38:45] incoming connection: 127.0.0.1:59112 id: 8
[22:38:46] Tst_Jaja has joined the server (8:127.0.0.1)
[22:38:52] 127.0.0.1:59113 requests connection cookie.
[22:38:52] incoming connection: 127.0.0.1:59113 id: 9
[22:38:52] Tst_Jajaa has joined the server (9:127.0.0.1)
[22:39:06] 127.0.0.1:59114 requests connection cookie.
[22:39:06] incoming connection: 127.0.0.1:59114 id: 10
[22:39:07] Tst_Jajaaa has joined the server (10:127.0.0.1)
[22:39:13] 127.0.0.1:59115 requests connection cookie.
[22:39:13] incoming connection: 127.0.0.1:59115 id: 11
[22:39:13] Tst_Jajaaaa has joined the server (11:127.0.0.1)
[22:39:50] 127.0.0.1:54023 requests connection cookie.
[22:39:50] incoming connection: 127.0.0.1:54023 id: 12
[22:39:51] Tst_Jajaaaaa has joined the server (12:127.0.0.1)
[22:40:12] 192.168.0.14:58242 requests connection cookie.
[22:40:13] incoming connection: 192.168.0.14:58242 id: 13
[22:40:14] Bake_Skillz has joined the server (13:192.168.0.14)
[22:40:14] Run time error 4: "Array index out of bounds"
[22:40:14]   Accessing element at index 13 past array upper bound 12
[22:40:14] AMX backtrace:
[22:40:14] #0 00151d10 in ?? (13) from newscript11.amx
[22:40:14] #1 000837d8 in public RL_OnPlayerConnect (13) from newscript11.amx
[22:40:14] #2 native CallLocalFunction () from samp-server.exe
[22:40:14] #3 00023e40 in public SSCANF_OnPlayerConnect (13) from newscript11.amx
[22:40:14] #4 0001c5dc in public Itter_OnPlayerConnect (13) from newscript11.amx
[22:40:14] #5 native CallLocalFunction () from samp-server.exe
[22:40:14] #6 0001b850 in ?? (13) from newscript11.amx
[22:40:14] #7 00006338 in public OnPlayerConnect (13) from newscript11.amx
[22:40:42] Server received interrupt signal
[22:40:42] Native backtrace:
[22:40:42] #0 776207ec in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[22:40:42] #1 75af2e1f in ?? () from C:\Windows\System32\KERNELBASE.dll
[22:40:42] #2 0048d53c in ?? () from samp-server.exe
[22:40:42] #3 0049b4a1 in ?? () from samp-server.exe
[22:40:42] #4 0049b4b1 in ?? () from samp-server.exe
[22:40:42] --- Server Shutting Down.
[22:40:44] Kake_Sranjeeeee has left the server (0:0)
[22:40:44] Oda_D has left the server (1:0)
[22:40:44] Oda_Da has left the server (2:0)
[22:40:44] Oda_Daa has left the server (3:0)
[22:40:44] Oda_Daaa has left the server (4:0)
[22:40:44] Odda_Daaa has left the server (5:0)
[22:40:44] Odda_Daaaa has left the server (6:0)
[22:40:44] Tst_Jaj has left the server (7:0)
[22:40:44] Tst_Jaja has left the server (8:0)
[22:40:44] Tst_Jajaa has left the server (9:0)
[22:40:44] Tst_Jajaaa has left the server (10:0)
[22:40:44] Tst_Jajaaaa has left the server (11:0)
[22:40:44] Tst_Jajaaaaa has left the server (12:0)
[22:40:44] 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 ***

algorhitmically
4
Shot Caller
23. Feb. 2020.
Posalji sta ti je sve u OnPlayerConnect ili neki niz postavljen na 12 ili 13 elemenata.
skraipter
2
Rookie
24. Feb. 2020.
Evo nekih stvari sa sa nema..

new PlayerText:InfoTextdraws;

//ENUMATOR ANTI WEAPON
enum User
{
Weapon,
Ammo,
}


public OnPlayerConnect(playerid)
{
//Nove stvari//
    ObrisiObjekte(playerid);
    //Kraj novi stvari//
    KillTimer(FadeUprazno);
    FadeUprazno=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);

    PlayerVariables=INVALID_VEHICLE_ID;

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha