Jump to content

Question

Posted

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

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

[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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.