Jump to content
  • 0

Problema run time log


MarianLeo

Question

[debug] Run time error 4: "Array index out of bounds"
[debug]  Attempted to read/write array element at index 65535 in array of size 50
[debug] AMX backtrace:
[debug] #0 001502ac in public SetPlayerUnjail () at gamemode.pwn:16861

//2

[debug] Run time error 4: "Array index out of bounds"
[debug]  Attempted to read/write array element at index 4287120 in array of size 50
[debug] AMX backtrace:
[debug] #0 001c54c4 in public SyncUp () at gamemode.pwn:22386

 

https://pastebin.com/2cQ2Es37

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 1

Salut @MarianLeo,

Prima eroare se produce deoarece scriptul tau incearca sa acceseze un id care nu exista pe server. Pentru a rezolva eroarea, tot ce ai de facut e sa detectezi daca id-ul jucatorului este diferit de INVALID_PLAYER_ID. Probabil e de la functia GetVehicleDriver.

Pentru a 2-a eroare, verifica daca MAX_PERSONAL_VEHICLES nu e cumva mai mare decat pCar[ x ], astfel accesand un ID care nu exista.

  • Thanks 1

Daca te-am ajutat =>

spacer.png

Link to comment
Share on other sites

  • 0
1 hour ago, shane said:

Salut @MarianLeo,

Prima eroare se produce deoarece scriptul tau incearca sa acceseze un id care nu exista pe server. Pentru a rezolva eroarea, tot ce ai de facut e sa detectezi daca id-ul jucatorului este diferit de INVALID_PLAYER_ID. Probabil e de la functia GetVehicleDriver.

Pentru a 2-a eroare, verifica daca MAX_PERSONAL_VEHICLES nu e cumva mai mare decat pCar[ x ], astfel accesand un ID care nu exista.

ti-am dat add pe discord te rog sa accepti sa te intreb ceva.

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.