Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Risticc poslato Jul 17, 2021, 18:17:28 POSLE PODNE

Naslov: Pad moda
Poruka od: Risticc poslato Jul 17, 2021, 18:17:28 POSLE PODNE
Problem(error/warning): E ovako koristim athlone mod i njega sam bas zavoleo medjutim uvek se desi taj jedan problem koji cu navesti upravo dole ako bi mogao bilo ko da mi pomogne da resim taj problem.Takodje kada se desi to izbrisu se text drawovi krene server izuzetno da baguje izlazi kladionica na spawnu svasta nesto
Deo skripte:
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [17:01:19] [debug] Run time error 4: "Array index out of bounds"
[17:01:19] [debug]  Accessing element at index 4 past array upper bound 3
[17:01:19] [debug] AMX backtrace:
[17:01:19] [debug] #0 006b02ec in ?? (... <5 arguments>) at C:\Users\UROS-PC\Desktop\Testiranje\Testiranje\gamemodes\ATH.pwn:36527
[17:01:19] [debug] #1 00012f48 in public OnDialogResponse (playerid=3, dialogid=80, response=1, listitem=-1, inputtext[]=@03175860 "123123") at C:\Users\UROS-PC\Desktop\Testiranje\Testiranje\pawno\include\YSI\y_hooks/impl.inc:2270
Naslov: Odg: Pad moda
Poruka od: Claus poslato Jul 17, 2021, 19:19:58 POSLE PODNE
Daj liniju 36527
Naslov: Odg: Pad moda
Poruka od: Risticc poslato Jul 17, 2021, 19:23:43 POSLE PODNE
antiCheatCS[ playerid ][ TeleportCheck ] = 4;
Naslov: Odg: Pad moda
Poruka od: _tayloR poslato Jul 17, 2021, 21:04:15 POSLE PODNE
Sta tacno radis pa se to desi ?

OnDialogResponse (playerid=3, dialogid=80, response=1, listitem=-1, inputtext[]=@03175860 "123123")
Naslov: Odg: Pad moda
Poruka od: Risticc poslato Jul 17, 2021, 21:05:40 POSLE PODNE
Bukvalno nista ali kako vidim po kodu verovatno je to login
Naslov: Odg: Pad moda
Poruka od: _tayloR poslato Jul 17, 2021, 21:07:56 POSLE PODNE
Citat: slash dev poslato Jul 17, 2021, 21:05:40 POSLE PODNE
Bukvalno nista ali kako vidim po kodu verovatno je to login
Ako moze posalji taj dialog da vidimo sta moze bit
Naslov: Odg: Pad moda
Poruka od: Risticc poslato Jul 17, 2021, 21:11:01 POSLE PODNE
[pawn]forward Login( playerid );
public Login( playerid ) {

    InterpolateCameraPos( playerid, 501.1220, -2123.5720, 61.1148, 599.5076, -1907.3519, 61.1148, 25000 );
   InterpolateCameraLookAt( playerid, 00.2217, -2123.1355, 60.7137, 598.5964, -1906.9376, 60.7237, 10000 );
   RandomLoginMuzika( playerid );
    ClearChat( playerid, 25 );
    SCM(playerid,SERVERBOJA, "- Project X RP - "col_white"Ucitavanje servera, sacekajte malo...");

   LoginTDControl( playerid, true );

   PrviSpawn[playerid] = 1;
   format( sDStrg, sizeof( sDStrg ),DialogTekstovi[ 0 ], MAX_POKUSAJ_LOGINA );
   SPD(playerid, dialog_LOGIN, DSP, D_NASLOV, sDStrg, D_ODABERI, D_ODUSTANI );

   new happyhforall[ 12 ], happyhforlvl[ 12 ], pol[ 7 ], drzava[ 32 ], promoter[ 4 ];

   if( ServerInfo[ HappyHours ] == true ) happyhforall = "Ukljuceni";
   else happyhforall = "Iskljuceni";
   if( ServerInfo[ HappyLVLHours ] == true ) happyhforlvl = "Ukljuceni";
   else happyhforlvl = "Iskljuceni";

   if( PlayerInfo[ playerid ][ xPol ] == 1 ) pol = "Musko";
   else if( PlayerInfo[ playerid ][ xPol ] == 2 ) pol = "Zensko";

   if( PlayerInfo[ playerid ][ xDrzava ] == 1 ) drzava = "Hrvatska";
   else if( PlayerInfo[ playerid ][ xDrzava ] == 2 ) drzava = "Srbija";
   else if( PlayerInfo[ playerid ][ xDrzava ] == 3 ) drzava = "Makedonija";
   else if( PlayerInfo[ playerid ][ xDrzava ] == 4 ) drzava = "Crna_Gora";
   else if( PlayerInfo[ playerid ][ xDrzava ] == 5 ) drzava = "Bosna_i_Hercegovina";
   else if( PlayerInfo[ playerid ][ xDrzava ] == 6 ) drzava = "Ostalo";

   if( PlayerInfo[ playerid ][ xPromoter ] == 0 ) promoter = "Ne";
   else if( PlayerInfo[ playerid ][ xPromoter ] == 1 ) promoter = "Da";
   return 1;
}[/pawn]

Ovo je ceo login deo ali ne znam zasto izbacuje to nema logike
Naslov: Odg: Pad moda
Poruka od: Risticc poslato Jul 17, 2021, 21:17:40 POSLE PODNE
[21:04:33] [debug] Run time error 4: "Array index out of bounds"
[21:04:33] [debug]  Accessing element at index 4 past array upper bound 3
[21:04:33] [debug] AMX backtrace:
[21:04:33] [debug] #0 006b05b4 in ?? (... <5 arguments>) at C:\Users\UROS-PC\Desktop\Project X\Project X\gamemodes\ATH.pwn:36535
[21:04:33] [debug] #1 00012f48 in public OnDialogResponse (playerid=2, dialogid=80, response=1, listitem=-1, inputtext[]=@03f19808 "strahinja") at C:\Users\UROS-PC\Desktop\Project X\Project X\pawno\include\YSI\y_hooks/impl.inc:2270
[21:06:29] ristic je naneo 6 demidza kapic-u, oruzje: 0, deo tela: 3
[21:09:23] [part] ristic has left the server (1:1)
[21:10:08] [connection] 93.184.92.181:54251 requests connection cookie.
[21:10:09] [connection] incoming connection: 93.184.92.181:54251 id: 1
[21:10:09] [join] ristic has joined the server (1:93.184.92.181)
[21:10:25] [debug] Run time error 4: "Array index out of bounds"
[21:10:25] [debug]  Accessing element at index 4 past array upper bound 3
[21:10:25] [debug] AMX backtrace:
[21:10:25] [debug] #0 006b05b4 in ?? (... <5 arguments>) at C:\Users\UROS-PC\Desktop\Project X\Project X\gamemodes\ATH.pwn:36535
[21:10:25] [debug] #1 00012f48 in public OnDialogResponse (playerid=1, dialogid=80, response=1, listitem=-1, inputtext[]=@03f19808 "urke123") at C:\Users\UROS-PC\Desktop\Project X\Project X\pawno\include\YSI\y_hooks/impl.inc:2270
[21:14:15] Nemanja_Ivic je naneo 1 demidza ristic-u, oruzje: 0, deo tela: 3
[21:15:20] [debug] Run time error 4: "Array index out of bounds"
[21:15:20] [debug]  Accessing element at index 4 past array upper bound 3
[21:15:20] [debug] AMX backtrace:
[21:15:20] [debug] #0 0095a714 in TogPlayerHud (playerid=1) at C:\Users\UROS-PC\Desktop\Project X\Project X\gamemodes\ATH.pwn:74930
[21:15:20] [debug] #1 00960780 in public cmd_blowjob (playerid=1, params[]=@03f1982c "") at C:\Users\UROS-PC\Desktop\Project X\Project X\gamemodes\ATH.pwn:75386
[21:15:20] [debug] #2 native CallLocalFunction () from samp03svr
[21:15:20] [debug] #3 0001f0a4 in ?? (... <2 arguments>) at C:\Users\UROS-PC\Desktop\Project X\Project X\pawno\include\zcmd.inc:102
[21:15:20] [debug] #4 0000ffe4 in public OnPlayerCommandText (playerid=1, cmdtext[]=@03f19808 "/blowjob") at C:\Users\UROS-PC\Desktop\Project X\Project X\pawno\include\YSI\y_hooks/impl.inc:946
[21:15:21] [debug] Run time error 4: "Array index out of bounds"
[21:15:21] [debug]  Accessing element at index 4 past array upper bound 3
[21:15:21] [debug] AMX backtrace:
[21:15:21] [debug] #0 0095a714 in TogPlayerHud (playerid=2) at C:\Users\UROS-PC\Desktop\Project X\Project X\gamemodes\ATH.pwn:74930
[21:15:21] [debug] #1 00960f10 in public cmd_blowjob (playerid=2, params[]=@03f1982c "") at C:\Users\UROS-PC\Desktop\Project X\Project X\gamemodes\ATH.pwn:75423
[21:15:21] [debug] #2 native CallLocalFunction () from samp03svr
[21:15:21] [debug] #3 0001f0a4 in ?? (... <2 arguments>) at C:\Users\UROS-PC\Desktop\Project X\Project X\pawno\include\zcmd.inc:102
[21:15:21] [debug] #4 0000ffe4 in public OnPlayerCommandText (playerid=2, cmdtext[]=@03f19808 "/blowjob") at C:\Users\UROS-PC\Desktop\Project X\Project X\pawno\include\YSI\y_hooks/impl.inc:946
[21:15:32] [debug] Run time error 4: "Array index out of bounds"
[21:15:32] [debug]  Accessing element at index 4 past array upper bound 3
[21:15:32] [debug] AMX backtrace:
[21:15:32] [debug] #0 0095a714 in TogPlayerHud (playerid=2) at C:\Users\UROS-PC\Desktop\Project X\Project X\gamemodes\ATH.pwn:74930
[21:15:32] [debug] #1 009601fc in public cmd_blowjob (playerid=2, params[]=@03f1982c "") at C:\Users\UROS-PC\Desktop\Project X\Project X\gamemodes\ATH.pwn:75353
[21:15:32] [debug] #2 native CallLocalFunction () from samp03svr
[21:15:32] [debug] #3 0001f0a4 in ?? (... <2 arguments>) at C:\Users\UROS-PC\Desktop\Project X\Project X\pawno\include\zcmd.inc:102
[21:15:32] [debug] #4 0000ffe4 in public OnPlayerCommandText (playerid=2, cmdtext[]=@03f19808 "/blowjob") at C:\Users\UROS-PC\Desktop\Project X\Project X\pawno\include\YSI\y_hooks/impl.inc:946
[21:15:33] [debug] Run time error 4: "Array index out of bounds"
[21:15:33] [debug]  Accessing element at index 4 past array upper bound 3
[21:15:33] [debug] AMX backtrace:
[21:15:33] [debug] #0 0095a714 in TogPlayerHud (playerid=1) at C:\Users\UROS-PC\Desktop\Project X\Project X\gamemodes\ATH.pwn:74930
[21:15:33] [debug] #1 009601fc in public cmd_blowjob (playerid=1, params[]=@03f1982c "") at C:\Users\UROS-PC\Desktop\Project X\Project X\gamemodes\ATH.pwn:75353
[21:15:33] [debug] #2 native CallLocalFunction () from samp03svr
[21:15:33] [debug] #3 0001f0a4 in ?? (... <2 arguments>) at C:\Users\UROS-PC\Desktop\Project X\Project X\pawno\include\zcmd.inc:102
[21:15:33] [debug] #4 0000ffe4 in public OnPlayerCommandText (playerid=1, cmdtext[]=@03f19808 "/blowjob") at C:\Users\UROS-PC\Desktop\Project X\Project X\pawno\include\YSI\y_hooks/impl.inc:946
[21:15:40] kapic je naneo 1 demidza ristic-u, oruzje: 0, deo tela: 3
[21:15:48] [debug] Run time error 4: "Array index out of bounds"
[21:15:48] [debug]  Accessing element at index 4 past array upper bound 3
[21:15:48] [debug] AMX backtrace:
[21:15:48] [debug] #0 0095a714 in TogPlayerHud (playerid=1) at C:\Users\UROS-PC\Desktop\Project X\Project X\gamemodes\ATH.pwn:74930
[21:15:48] [debug] #1 00961e2c in public cmd_blowjob (playerid=1, params[]=@03f1982c "") at C:\Users\UROS-PC\Desktop\Project X\Project X\gamemodes\ATH.pwn:75495
[21:15:48] [debug] #2 native CallLocalFunction () from samp03svr
[21:15:48] [debug] #3 0001f0a4 in ?? (... <2 arguments>) at C:\Users\UROS-PC\Desktop\Project X\Project X\pawno\include\zcmd.inc:102
[21:15:48] [debug] #4 0000ffe4 in public OnPlayerCommandText (playerid=1, cmdtext[]=@03f19808 "/blowjob") at C:\Users\UROS-PC\Desktop\Project X\Project X\pawno\include\YSI\y_hooks/impl.inc:946
[21:15:58] [debug] Run time error 4: "Array index out of bounds"
[21:15:58] [debug]  Accessing element at index 4 past array upper bound 3
[21:15:58] [debug] AMX backtrace:
[21:15:58] [debug] #0 0095a714 in TogPlayerHud (playerid=2) at C:\Users\UROS-PC\Desktop\Project X\Project X\gamemodes\ATH.pwn:74930
[21:15:58] [debug] #1 00961e2c in public cmd_blowjob (playerid=2, params[]=@03f1982c "") at C:\Users\UROS-PC\Desktop\Project X\Project X\gamemodes\ATH.pwn:75495
[21:15:58] [debug] #2 native CallLocalFunction () from samp03svr
[21:15:58] [debug] #3 0001f0a4 in ?? (... <2 arguments>) at C:\Users\UROS-PC\Desktop\Project X\Project X\pawno\include\zcmd.inc:102
[21:15:58] [debug] #4 0000ffe4 in public OnPlayerCommandText (playerid=2, cmdtext[]=@03f19808 "/blowjob") at C:\Users\UROS-PC\Desktop\Project X\Project X\pawno\include\YSI\y_hooks/impl.inc:946
[21:16:09] [debug] Run time error 4: "Array index out of bounds"
[21:16:09] [debug]  Accessing element at index 4 past array upper bound 3
[21:16:09] [debug] AMX backtrace:
[21:16:09] [debug] #0 0095a714 in TogPlayerHud (playerid=2) at C:\Users\UROS-PC\Desktop\Project X\Project X\gamemodes\ATH.pwn:74930
[21:16:09] [debug] #1 009601fc in public cmd_blowjob (playerid=2, params[]=@03f1982c "") at C:\Users\UROS-PC\Desktop\Project X\Project X\gamemodes\ATH.pwn:75353
[21:16:09] [debug] #2 native CallLocalFunction () from samp03svr
[21:16:09] [debug] #3 0001f0a4 in ?? (... <2 arguments>) at C:\Users\UROS-PC\Desktop\Project X\Project X\pawno\include\zcmd.inc:102
[21:16:09] [debug] #4 0000ffe4 in public OnPlayerCommandText (playerid=2, cmdtext[]=@03f19808 "/blowjob") at C:\Users\UROS-PC\Desktop\Project X\Project X\pawno\include\YSI\y_hooks/impl.inc:946
[21:16:12] [debug] Run time error 4: "Array index out of bounds"
[21:16:12] [debug]  Accessing element at index 4 past array upper bound 3
[21:16:12] [debug] AMX backtrace:
[21:16:12] [debug] #0 0095a714 in TogPlayerHud (playerid=1) at C:\Users\UROS-PC\Desktop\Project X\Project X\gamemodes\ATH.pwn:74930
[21:16:12] [debug] #1 009601fc in public cmd_blowjob (playerid=1, params[]=@03f1982c "") at C:\Users\UROS-PC\Desktop\Project X\Project X\gamemodes\ATH.pwn:75353
[21:16:12] [debug] #2 native CallLocalFunction () from samp03svr
[21:16:12] [debug] #3 0001f0a4 in ?? (... <2 arguments>) at C:\Users\UROS-PC\Desktop\Project X\Project X\pawno\include\zcmd.inc:102
[21:16:12] [debug] #4 0000ffe4 in public OnPlayerCommandText (playerid=1, cmdtext[]=@03f19808 "/blowjob") at C:\Users\UROS-PC\Desktop\Project X\Project X\pawno\include\YSI\y_hooks/impl.inc:946


Upravo log sa hosta i nestali su text drawovi