Jump to content
  • 0

GM Debug error


custura

Question

Problema: [debug] Run time error 4: "Array index out of bounds"
Erori/atentionari: 
[18:28:37] [debug] Run time error 4: "Array index out of bounds"
[18:28:37] [debug] Accessing element at index 48 past array upper bound 47
[18:28:37] [debug] AMX backtrace:
[18:28:37] [debug] #0 00067dc8 in public IsPlayerInTurf (playerid=0, turfid=48) at C:\Users\Custura\Desktop\GalacticRP v1 like H\gamemodes\galacticrp.pwn:4415
[18:28:37] [debug] #1 00317d9c in public cmd_attack (playerid=0, params[]=@00dd8798 "") at C:\Users\Custura\Desktop\GalacticRP v1 like H\gamemodes\galacticrp.pwn:49974
[18:28:37] [debug] #2 native CallLocalFunction () from samp-server.exe
[18:28:37] [debug] #3 0001f51c in public OnPlayerCommandText (playerid=0, cmdtext[]=@00dd8778 "/attack") at C:\Users\Custura\Desktop\GalacticRP v1 like H\pawno\include\zcmd.inc:87

Alte detalii: cand folosesc comanda /attack imi da aceasta eroare

 

pastebin.com/XKz3ccT3

Linia 4415 o ai aici: pastebin.com/7RGw5hGy

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
La 09.04.2017 la 15:40, WopsS a spus:

Daca vrei sa folosesti asta


for(new i = 1; i <= sizeof(TurfInfo); i++)

ori declari TurfInfo cu o valoare mai mare si zici sizeof(...) - 1 ori pleci de la 0 pana la sizeof(TurfInfo) (fara <=).

A mers asa, dar acum nu imi citeste turfurile

 Trebuie sa rescriu din MySQL plugin R34 in MySQL plugin R39-3

https://pastebin.com/nHETzSXP

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.