Jump to content

NoManPv

Member
  • Posts

    156
  • Joined

  • Last visited

Posts posted by NoManPv

  1. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)

    {

    P:2("Hooks_OnPlayerKeyStateChange called: %d, %d, %d", playerid, newkeys, oldkeys);

    new

    end   = _:YSI_g_sCallbackEnd[ALS_OnPlayerKeyStateChange],

    start = _:YSI_g_sCallbackStart[ALS_OnPlayerKeyStateChange],

    ret = ALS_R_PlayerKeyStateChange;

    while (start++ != end) asta e linia [1945] cer putea sa fie gresit ?

    {

  2. am si o intrebare in server log am vazut asta

     

    [21:38:36] [debug] #3 00028d68 in public OnPlayerKeyStateChange (playerid=18, newkeys=12, oldkeys=8) at C:\Users\NoManPv\Desktop\gun-time\pawno\include\YSI\y_hooks/impl.inc:1945
    [21:38:36] [debug] Run time error 4: "Array index out of bounds"
    [21:38:36] [debug]  Accessing element at index 65535 past array upper bound 1999
     
    am cauta in implc.inc: dar nu gasesc nmk daca stie cineva  replay sa-mi ziceti ce cod trebuie
  3. salut in server log imi arata asta 

     

     

    [11:23:22] [debug] Run time error 4: "Array index out of bounds"
    [11:23:22] [debug]  Accessing element at negative index -1
    [11:23:22] [debug] AMX backtrace:
    [11:23:22] [debug] #0 003a625c in public Timers () at C:\Users\NoManPv\Desktop\gun-time\gamemodes\beta.pwn:32777
     
    si linia este asta unde se face aici bounds
     
    if(PaintType != 0 && PlayersOnPaint(PaintType-1) >= 2) {
    new pp = PaintType-1;
    if(pp < 2) {
    format(string, sizeof(string), "Paintball time: %s~n~Current map: %s~n~Stats: %d kills, %d deaths.~n~Total score: %d~n~Best player: %s (kills: %d)~n~%d players in paintball.",
    CalculeazaTimp2(PaintTime[pp]), MapName(pp), PKills, PDeaths, PKills-PDeaths, GetName(PaintballWinner[pp]), PKills[PaintballWinner[pp]], PlayersOnPaint(pp));
    }
    else {
    new masadenume[32];
    GetWeaponNameEx(GetPlayerWeapon(i), masadenume, sizeof(masadenume));
     
    format(string, sizeof(string), "Paintball time: %s~n~Current map: %s~n~Stats: %d kills, %d deaths.~n~Total score: %d~n~Level %d, Weapon: %s~n~Best player: %s (kills: %d)~n~%d players in paintball.",
    CalculeazaTimp2(PaintTime[pp]), MapName(pp), PKills, PDeaths, PKills-PDeaths, GetPaintLevel(i), masadenume, GetName(PaintballWinner[pp]), PKills[PaintballWinner[pp]], PlayersOnPaint(pp));
    }
     
    if(PaintTime[pp] == 0 && PaintballWinner[pp] != -1) {
    for(new m = 0; m < 5; m++) SendDeathMessageToPlayer(i, 1001, 1001, 200);
    format(string, sizeof(string), "Statistica ta in aceasta runda: %d ucideri si %d decese.", PKills, PDeaths);
    SCM(i, COLOR_YELLOW, string);
    format(swinner, 256, "* %s a castigat runda cu %d ucideri.", GetName(PaintballWinner[pp]), PKills[PaintballWinner[pp]]);
    PKills = 0, PDeaths = 0;
    ResetWeapons(i);
    PaintballWinnerScore[pp] = 0;
    SendPaintMessage(PaintType, COLOR_YELLOW, swinner);
    PaintballWinner[pp] = -1;
    }
    if(PaintTime[pp] != 0 && PaintText[pp] == 0) {
    PlayerTextDrawSetString(i, PaintTD, string);
    PlayerTextDrawShow(i, PaintTD);
    }
    else {
    PlayerTextDrawHide(i, PaintTD);
    }
    }
    else PlayerTextDrawHide(i, PaintTD);

     

  4. a dat asta

    [22:42:15] [debug] Run time error 4: "Array index out of bounds"

    [22:42:15] [debug]  Accessing element at index 65535 past array upper bound 49
    [22:42:15] [debug] AMX backtrace:
    [22:42:15] [debug] #0 002df160 in public Timers () from beta.amx
     
    si dupa
     
    [23:11:39] [debug] Run time error 4: "Array index out of bounds"
    [23:11:39] [debug]  Accessing element at negative index -146676425
    [23:11:39] [debug] AMX backtrace:
    [23:11:39] [debug] #0 001634c0 in public OnDialogResponse () from beta.amx
  5. salut am si eu problema de ceva timp pica sv imi da asta si sa stins sv sti de la ce e

     

    [22:38:02] [debug] AMX backtrace:
    [22:38:02] [debug] #0 00000076 in ?? (115, 116, 114, 117, 46, 46, 0, 0, 0, 0, ... <17 arguments>) from beta.amx
    [22:38:02] [debug] #1 00000076 in public OnDialogResponse () from beta.amx
×
×
  • Create New...