Please Help [Array index out of bounds]
#1

I did not solve it anyhow ://

[18:38:27] [debug] Run time error 4: "Array index out of bounds"
[18:38:27] [debug] AMX backtrace:
[18:38:27] [debug] #0 0003cf00 in public OnDialogResponse (0, 5173, 1, -1, 17414380) from cete.amx

Thank You : p

This is my fault pawn

https://pastebin.com/cxeseC0D
Reply
#2

Compile with -d3.
Reply
#3

Could not explain anything about -d3
Reply
#4

https://github.com/Zeex/samp-plugin-...ith-debug-info
Reply
#5

Did not exist and this error is output

In the meantime I get this from the console

[20:56:28] [debug] Run time error 4: "Array index out of bounds"
[20:56:28] [debug] AMX backtrace:
[20:56:28] [debug] #0 00048f28 in public OnDialogResponse (playerid=0, dialogid=5173, response=1, listitem=-1, inputtext[]=@0109b8ec "") at C:\Users\Estekina\Desktop\hp\filterscripts\cete.pw n:633
Reply
#6

Read the error. See "filterscripts/cete.pwn:633"? It means the problem is caused by cete.pwn file on line 633.
Reply
#7

Quote:
Originally Posted by Misiur
Посмотреть сообщение
Read the error. See "filterscripts/cete.pwn:633"? It means the problem is caused by cete.pwn file on line 633.
if(response)
{
new ceteid = PlayerInfo[playerid][CeteID];
line said ///////// if(CeteInfo[ceteid][isimhakki] < 1) return SendClientMessage(playerid,-1,"İsim değiştirme hakkınızı doldurmuşsunuz!");
if(PlayerInfo[ceteid][Lider] != 1) return SendClientMessage(playerid,-1,"Зete lideri değilsiniz!");
if(strlen(inputtext) > 31 || !strlen(inputtext)) return ShowPlayerDialog(playerid, 5173, DIALOG_STYLE_INPUT, "Зete İsmi", "Зete ismi boş veya 32 karakterden uzun olamaz!","Tamam","");
format(CeteInfo[ceteid][Isim], 32, "%s", inputtext);
CeteInfo[ceteid][isimhakki] --;
Please :/
Reply
#8

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
Compile with -d3.
It did not work ://
Reply
#9

Please :://////
Reply
#10

Your "ceteid" has an invalid value. Wrap stuff using it in a sanity check
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)