Взял систему репорта по очереди, и теперь вылетают варинги от крашдетекта и в самом списке меню, не убавляется список, примерный код где выходят ошибки:
PHP код:
if(GetPVarInt(playerid, "report_id"))
{
new report_id = GetPVarInt(playerid, "report_id");
aReportInfo[report_id][rIsTooked] = false;
aReportInfo[report_id][rID] = report_id;
aReportInfo[report_id][rPlayerID] = -1;
aReportInfo[report_id][rText][0] = EOS;
aReportInfo[report_id][rWhenWroted_Time] = -1;
aReportInfo[report_id][rWhenWroted_Text][0] = EOS;
}
И
PHP код:
new
report_id = GetPVarInt(playerid, "report_id_to_answer"),
target_id = aReportInfo[report_id][rPlayerID];
if(target_id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, !""INPP"Данный игрок отключился от сервера!");
static const
target_msg[] = "Ответ от %s[%d]: %s",
admins_msg[] = "[A] Администратор %s[%d] ответил %s[%d]: %s";
new string[sizeof(admins_msg) + (-2+MAX_PLAYER_NAME)*2 + (-2+90)];
format(string, sizeof(string), admins_msg, PlayerInfo[playerid][pName], playerid, PlayerInfo[target_id][pName], target_id, inputtext);
SendAdminMessage(COLOR_ADMINK, string);
format(string, sizeof(string), target_msg, PlayerInfo[playerid][pName], playerid, inputtext);
SendClientMessage(target_id, -1, string);
DeletePVar(target_id, "report_id");
aReportInfo[report_id][rIsTooked] = false;
aReportInfo[report_id][rID] = report_id;
aReportInfo[report_id][rPlayerID] = -1;
aReportInfo[report_id][rText][0] = EOS;
aReportInfo[report_id][rWhenWroted_Time] = -1;
aReportInfo[report_id][rWhenWroted_Text][0] = EOS;
}
return true;
}
Что делать?