Question

При компиляции мода возникает ошибка: Universal228.pwn(43580) : error 029: invalid expression, assumed zero

 

case dAlogin:
        {
            if(!response)
                return 1;
            if(PlayerInfo[playerid][pAdmin] <= 0)
                return SendClientMessage(playerid, COLOR_LIGHTRED, "Вам запрещено использовать команду. Причина: Вы не администратор.");
            if(PlayerInfo[playerid][pAdmin] < 12 && PlayerInfo[playerid][pAdminBlockAlogin])
            {
                ShowBlockALoginDialog(playerid);
                return 1;
            }
            if(isnull(inputtext))
            {
                return ShowAdminLoginDialog(playerid);
            }
            new password;
            if(sscanf(inputtext, "i", password) || password != PlayerInfo[playerid][pDostup])
            {
                new attempt = GetPVarInt(playerid, pVar__AdminLoginAttempt)+1;
                if(attempt >= MAX_ALOGIN_ATTEMPT)
                {
                    PlayerInfo[playerid][pAdminBlockAlogin] = 1;
                    UpdatePlayerData(playerid, "admin_block_alogin"1);
                    ShowBlockALoginDialog(playerid);
                }
                else
                {
                    SetPVarInt(playerid, pVar__AdminLoginAttempt, attempt);
                    ShowAdminLoginDialog(playerid);
                }
                return 1;
            }
            else
            {
                DeletePVar(playerid, pVar__AdminLoginAttempt);
                AdminLogin{playerid} = true;

                if (0 == PlayerInfo[playerid][pPrefActive]) format(stringer, sizeof(stringer), "{FF4500}[Online] Зашел в онлайн администратор %s[%d] %d уровня. ( {FFFFFF}%s, %s {545c7e})",
                    Name(playerid),
                    playerid,
                    AdminLevel(playerid),
                    GetPlayerCountry(playerid),
                    GetPlayerCity(playerid));
                SendAdminMessage(0xF4B800AA, stringer);
                TogglePlayerControllable(playerid, 1);
                for(new i = 0;i<52;i++) EnableAntiCheatForPlayer(playerid, i, 0);
                
                else format(stringer, sizeof(stringer), "{FF4500}[Online] Зашел в онлайн администратор %s %s[%d] %d уровня. ({FFFFFF}%s, %s {545c7e})"// строка 43580
                    Name(playerid),
                    playerid,
                    AdminLevel(playerid),
                    GetPlayerCountry(playerid),
                    GetPlayerCity(playerid));
                SendAdminMessage(0xF4B800AA, stringer);
                TogglePlayerControllable(playerid, 1);
                for(new i = 0;i<52;i++) EnableAntiCheatForPlayer(playerid, i, 0);

                
                if(!Iter_Contains(Connect_Admin, playerid))
                {
                    Iter_Add(Connect_Admin, playerid);
                }
            }
            return 1;

 

Share this post


Link to post
Share on other sites

0 answers to this question

There have been no answers to this question yet

Guest
This topic is now closed to further replies.