Jump to content
  • 0

Run time error 4: "Array index out of bounds"


Maddo

Question

Salut, am vrut sa imi pun ca la Payday sa imi arate un textdraw cu toate informatiile, gen Salariu si etc, si l am pus acolo frumos, cu tot ce trebuie, am adaugat toate textdraw-urile, dar atunci cand vine payday-ul, imi arata fix asta in server_log iar pe server primesc ora in + si tot ce mai e de primit, dar nu imi apare niciun textdraw

[debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at index 999 past array upper bound 99
[debug] AMX backtrace:
[debug] #0 0026f4f8 in public PayDay () from wa-rpg.amx

publicul PayDay(): https://pastebin.com/Mntu0mwu

Edited by Maddo
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
Acum 7 minute, Maddo a spus:

Salut, am vrut sa imi pun ca la Payday sa imi arate un textdraw cu toate informatiile, gen Salariu si etc, si l am pus acolo frumos, cu tot ce trebuie, am adaugat toate textdraw-urile, dar atunci cand vine payday-ul, imi arata fix asta in server_log iar pe server primesc ora in + si tot ce mai e de primit, dar nu imi apare niciun textdraw

[debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at index 999 past array upper bound 99
[debug] AMX backtrace:
[debug] #0 0026f4f8 in public PayDay () from wa-rpg.amx

publicul PayDay(): https://pastebin.com/Mntu0mwu

cum ai definit PayDayTD ?

Link to comment
Share on other sites

  • 0
5 minutes ago, valivaly96 said:

cum ai definit PayDayTD ?

new Text: PayDayTDs[3];
new PlayerText: PayDayTD[6][MAX_PLAYERS];

Sunt 2 feluri, alea 6 sunt per player si alea 3 sunt globale, alea 6 sunt textele per player cu cat a castigat fiecare si asa, si alea 3 sunt BOX-urile unde se afla textele

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.