Майк Джокер
Нуль
- Регистрация
- 20 Июл 2019
- Сообщения
- 1
- Лучшие ответы
- 0
- Репутация
- 0
После ввода команды /alogin сервер падает
Вот код команды:
Вот что выдает server_log:
Public password:
Вот код команды:
Код:
CMD:alogin(playerid, params[])
{
if(GetPVarInt(playerid, "check_alogin") > gettime()) return true;
new string[MAX_STR];
format(string, MAX_STR, "SELECT * FROM `admin` WHERE `name` = '%s'", PlayerInfo[playerid][pNames]);
mysql_tquery(connects, string, "alogin1", "ds",playerid,PlayerInfo[playerid][pNames]);
SetPVarInt(playerid, "check_alogin", gettime()+5);
return true;
}
Код:
[23:02:01] [debug] Server crashed while executing mod.amx
[23:02:01] [debug] AMX backtrace:
[23:02:01] [debug] #0 00000036 in ?? (0, 6317316, 0, 0, 0, 0, 0, 0, 0, 0, ... <13 more arguments>) at C:\Users\Asus\Desktop\Smoke\pawno\include\float.inc:112
[23:02:01] [debug] #1 00000036 in public password () at C:\Users\Asus\Desktop\Smoke\pawno\include\float.inc:112
Код:
publics: password(playerid,inputtext[])
{
new stringer228[144], f,d;
cache_get_data(f,d);
if(!f)
{
SendClientMessage(playerid, COLOR_WHITE, "Неверный пароль");
SetPVarInt(playerid, "Popytki", GetPVarInt(playerid, "Popytki") + 1);
if(GetPVarInt(playerid, "Popytki") > 3)
{
DeletePVar(playerid, "Popytki");
SetTimerEx("PlayerKick",500,false,"d", playerid);
}
}
else
{
SetPVarInt(playerid, "dostup", 1);
cache_get_field_content(0, "level", stringer228, connects);
PlayerInfo[playerid][bAdmin] = strval(stringer228);
UpdatePlayerData(playerid, "bAdmin",PlayerInfo[playerid][bAdmin]);
new ttt[1111];
format(ttt, sizeof(ttt), "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
stepMSG[0],stepMSG[1],stepMSG[2],stepMSG[3],stepMSG[4],stepMSG[5],stepMSG[6],stepMSG[7],stepMSG[8],stepMSG[9],stepMSG[10],stepMSG[11],stepMSG[12],stepMSG[13],stepMSG[14],stepMSG[15],stepMSG[16],stepMSG[17],stepMSG[18],stepMSG[19],stepMSG[20],stepMSG[21],stepMSG[22],stepMSG[23],stepMSG[24],stepMSG[25],stepMSG[26]);
ShowPlayerDialog(playerid,3772,DIALOG_STYLE_MSGBOX,"{FFA500}Smoke-RP: {FFFFFF}Административные правила", ttt, "Прочитал", "");
new pip[24]; GetPlayerIp(playerid,pip,24);
format(stringer228, 150, "[A-Login] {FFFFFF}Администратор %s[%d] {FFCC00}%d{FFFFFF} уровня вошёл в админ-панель. {FFCC00}[REG IP: %s] [IP: %s]",PlayerInfo[playerid][pNames],playerid,PlayerInfo[playerid][bAdmin],PlayerInfo[playerid][pIpReg],PlayerInfo[playerid][pIP]);
ABroadCast(0xFFCC00FF,stringer228,1);
for(new i;i<10;i++) TextDrawShowForPlayer(playerid, CheatText[i]);
//switch(random(3))
//{
//case 0: SCM(playerid, "{FFA500}Информация:{ffffff} Для снятия выговора пропишите {8BD032}/adonate");
//case 1: SCM(playerid, "{FFA500}Информация:{ffffff} Для повышение Административного уровня пропишите {8BD032}/adonate");
// case 2: SCM(playerid, "{FFA500}Информация:{ffffff} Для приобретения дополнительных возможностей пропишите {8BD032}/adonate");
//}
}
cache_get_field_content(0, "CMDaccess", AdminInfo[playerid][aiCMDaccess], connects, CMD_NUM+1);
gAdmin[playerid][ADMIN_KICK] = cache_get_field_content_int(0,"kick",connects);
gAdmin[playerid][ADMIN_BAN] = cache_get_field_content_int(0,"ban",connects);
gAdmin[playerid][ADMIN_MUTE] = cache_get_field_content_int(0,"mute",connects);
gAdmin[playerid][ADMIN_PM] = cache_get_field_content_int(0,"pm",connects);
gAdmin[playerid][ADMIN_WARN] = cache_get_field_content_int(0,"warn",connects);
gAdmin[playerid][ADMIN_JAIL] = cache_get_field_content_int(0,"jail",connects);
gAdminReason[playerid][ADMIN_KICK] = bool:cache_get_field_content_int(0,"kickset");
gAdminReason[playerid][ADMIN_BAN] = bool:cache_get_field_content_int(0,"banedset");
gAdminReason[playerid][ADMIN_MUTE] = bool:cache_get_field_content_int(0,"muteset");
gAdminReason[playerid][ADMIN_PM] = bool:cache_get_field_content_int(0,"pmset");
gAdminReason[playerid][ADMIN_WARN] = bool:cache_get_field_content_int(0,"warnset");
gAdminReason[playerid][ADMIN_JAIL] = bool:cache_get_field_content_int(0,"jailset");
gAdminReason[playerid][ADMIN_CHAT] = bool:cache_get_field_content_int(0,"admset");
return true;
}