Jump to content
  • 0

Array index out of bounds


AdY.Capone

Question

Salut, am intampinat o problema in server_log

Gamemode ul nu prezinta niciun warning/error.

[19:54:27] [debug] AMX backtrace:
[19:54:27] [debug] #0 00274d3c in public LocalTimer () from gmm.amx
[19:54:28] [debug] Run time error 4: "Array index out of bounds"
[19:54:28] [debug]  Accessing element at index 16 past array upper bound 15

 

Serverul ruleaza normal din ce am vazut eu.

si cam asta ar fii o parte din LocalTimer

https://pastebin.com/4bQuuLBu

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

[22:15:35] [debug] #0 00319150 in public LocalTimer () at D:\GM\gamemodes\gmm.pwn:29240
[22:15:36] [debug] Run time error 4: "Array index out of bounds"
[22:15:36] [debug]  Accessing element at index 16 past array upper bound 15

 

       // War deelay    
    for(new i = 0; i < 17; i++) {
        if(FactionDeelay >= 1) {                           ////////asta e linia 29240
            FactionDeelay --;
            if(FactionDeelay == 0) {
                SendFactionMessage(i, COLOR_MONEY, "[WAR] Acum mafia ta poate ataca un teritoriu!");
            }
        }
    }

 

 

Si e destul lag pe server posibil sa fie de la eroarea asta sau proasta optimizare?

Edited by AdY.Capone
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.