05.11.2016, 18:02
Hey guys i've a problem.
Код:
[debug] AMX backtrace: [debug] #0 003b2f3c in ?? (1) from xax.amx [debug] #1 0021a934 in ?? (1) from xax.amx [debug] #2 0013b59c in public JBC_OnDialogResponse (1, 1, 1, -1, 38456412) from xax.amx [debug] #3 native CallLocalFunction () from samp03svr [debug] #4 00013300 in public OnDialogResponse (1, 1, 1, -1, 38456372) from xax.amx [debug] Run time error 4: "Array index out of bounds" [debug] Attempted to read/write array element at index 43 in array of size 43
Код:
if(dialogid == 1) { if(response) { if(Find(Ch[playerid][pass],MD5_Hash(inputtext))) LoadCh(playerid); else { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "Login", "{FFFFFF}Input your pass for login.", "Login", "Exit"); lright[playerid]++; } if(lright[playerid] == 3) Kick(playerid); } else Kick(playerid); } stock Find(text[], text2[]) { if(strfind(text, text2, true) == -1) return 1; return 0; }