List index Out of bounds(2) error!

Results 1 to 3 of 3
  1. #1
    Apprentice AGKeiz is offline
    MemberRank
    Aug 2012 Join Date
    8Posts

    List index Out of bounds(2) error!

    Hi, I'm one of Korean pangya player.

    I downloaded and installed S7 private server pack.

    I saw the tutorial video several times, and I've done what it shown.

    I logged in with test ID and selected server. but PY_Game is reported "List index Out of bounds(2)" error.

    If PY_Game were launched with delphi7, it shows error point below.

    -------------------------------------------------

    ...

    procedure mainpacket(i: integer);
    var
    pdata, datas: ansistring;
    idmascote, diasmascote: integer;
    begin
    if dbug=1 then debug('Enviando main packet',i);
    MySQL.Connected:=True;
    Query.Close;
    Query.SQL.Clear;
    Query.SQL.Add('select mascote from py_members where uid = '+QuotedStr(inttostr(Lista[i].uid))+'');
    Query.Open;
    idmascote:=Query.fieldbyname('mascote').asinteger;
    Query.Close;
    Query.SQL.Clear;
    Query.SQL.Add('select * from py_mascots where mid = '+QuotedStr(inttostr(idmascote))+'');
    Query.Open;
    diasmascote:=Query.fieldbyname('dias').asinteger;
    datas:=Query.fieldbyname('tempo').asstring;

    ===▶pdata:=EncryptS(Compress(#$44#$00#$00#$06#$00#$37#$32#$36#$2E#$30#$30#$19#$00#$67#$61#$6D#$65#$73#$65#$72#$76#$65#$72#$5F#$52#$65#$6C#$65+
    #$61#$73#$65#$5F#$47#$42#$2E#$65#$78#$65#$FF#$FF#$70#$61#$6E#$67#$73#$6B#$75#$72#$61#$6D#$61#$00#$00#$00#$00#$00+
    #$00#$00#$00#$00#$00#$00+wrapper(Lista[i].nick,39)+#$67#$75#$69#$6C#$64#$6D#$61#...


    ...

    -------------------------------------------------

    I searched on google, and I could know this error is because there is no 3rd value in the array. but I don't know how could I deal with this problem;((

    I hope run this server on my computer.
    please someone help me, and sorry for my bad english.

    er.jpg
    Last edited by AGKeiz; 01-07-14 at 06:27 PM.


  2. #2
    Member Nyamochka is offline
    MemberRank
    Jan 2013 Join Date
    89Posts

    Re: List index Out of bounds(2) error!




    press thanks =))

  3. #3
    Apprentice AGKeiz is offline
    MemberRank
    Aug 2012 Join Date
    8Posts

    Re: List index Out of bounds(2) error!

    Hello Nyamochka~! First, Thank you for your reply. It's very thankful for me.

    After reading your reply, I've changed my computer's date and time formats.

    But PYGame shows same error;((

    Is there any other solution about this problem?

    Thank you for your reply once again.



Advertisement