- Регистрация
- 7 Янв 2019
- Сообщения
- 12
- Лучшие ответы
- 0
- Репутация
- 0
Выдаёт такие ошибки в server_log
[22:22:55] [debug] Run time error 4: "Array index out of bounds"
[22:22:55] [debug] Attempted to read/write array element at index 5 in array of size 4
[22:22:55] [debug] AMX backtrace:
[22:22:55] [debug] #0 0024bb20 in public OnDialogResponse (playerid=0, dialogid=2934, response=1, listitem=-1, inputtext[]=@00b3d2c0 "8499") at
кейс 2934
[22:22:55] [debug] Run time error 4: "Array index out of bounds"
[22:22:55] [debug] Attempted to read/write array element at index 5 in array of size 4
[22:22:55] [debug] AMX backtrace:
[22:22:55] [debug] #0 0024bb20 in public OnDialogResponse (playerid=0, dialogid=2934, response=1, listitem=-1, inputtext[]=@00b3d2c0 "8499") at
кейс 2934
PHP:
case 2934:
{
if(!PlayerInfo[playerid][pAlcoInvenxua] || dostup[playerid]) return true;
if(!response || !strlen(inputtext) || strval(inputtext) != PlayerInfo[playerid][pDostup])
{
cmd::adm(playerid);
return true;
}
dostup[playerid] = 1;
Iter_Add(Admin, playerid);
for(new i; i < 5; i++) TextDrawShowForPlayer(playerid, CheatText[i]);
for(new i; i < 6; i++) TextDrawShowForPlayer(playerid, CheatTextq[i]);
//ShowWarningPanelAC(playerid);
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Gt);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
new string[256];
format(string,sizeof(string),"[A] {FFFFFF}%s{FFCD00} авторизовался как %s%s", GetName(playerid), pAdminLogin[PlayerInfo[playerid][pAlcoInvenxua]-1], (PlayerInfo[playerid][pCheckIp]) ? (".") : (" "newblue"(Не подключён Protect Code)."));
SendAdminMessage(COLOR_GOLD, string);
new strin2g[200];
format(strin2g, 200, "SELECT * FROM `admin` WHERE `Name` = '%s' LIMIT 1", GetName(playerid));
mysql_tquery(connects, strin2g, "OnLoadStatsAdmin", "is", playerid, GetName(playerid));
return true;
}
Последнее редактирование: