Please Help [Array index out of bounds] -
Besim086 - 04.08.2017
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
Re: Please Help [Array index out of bounds] -
StrikerZ - 04.08.2017
Compile with -d3.
Re: Please Help [Array index out of bounds] -
Besim086 - 04.08.2017
Could not explain anything about -d3
Re: Please Help [Array index out of bounds] -
FailerZ - 04.08.2017
https://github.com/Zeex/samp-plugin-...ith-debug-info
Re: Please Help [Array index out of bounds] -
Besim086 - 04.08.2017
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
Re: Please Help [Array index out of bounds] -
Misiur - 04.08.2017
Read the error. See "filterscripts/cete.pwn:633"? It means the problem is caused by cete.pwn file on line 633.
Re: Please Help [Array index out of bounds] -
Besim086 - 04.08.2017
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 :/
Re: Please Help [Array index out of bounds] -
Besim086 - 04.08.2017
Quote:
Originally Posted by Sunehildeep
Compile with -d3.
|
It did not work ://
Re: Please Help [Array index out of bounds] -
Besim086 - 04.08.2017
Please :://////
Re: Please Help [Array index out of bounds] -
Misiur - 04.08.2017
Your "ceteid" has an invalid value. Wrap stuff using it in a sanity check