• 0
Sign in to follow this  
Followers 0
MIhail280011

[закрыто] Ошибки в команде unbanip

Question

Спойлер

//unbanip
CMD:unbanip(playerid, params[])
{
    new type[128],string[128];
    if(sscanf(params, "s[128]", type)) SendClientMessage(playerid, -1, "USAGE: /unbanip [Players IP]");
    else
    {
        if(PlayerInfo[playerid][pPlayerLogged] == 0) return SendClientMessage(playerid, -1, "* You are not logged in!");//21453
        if(PlayerInfo[playerid][pAdminLevel] >= 1)//21454
        {
            format(string, sizeof(string),"unbanip %s", type);
            SendRconCommand(string);
            SendRconCommand("reloadbans");
            format(string, sizeof(string), "AdmWarning: %s has unbanned IP %s", Name( playerid ), type);
            SendAdminMessage(-1,string);
        }
        else
        {
            return SendClientMessage(playerid, -1 ,"You dont have access!");
        }
    }
    return true;
}
//unbanip

 

C:\Documents and Settings\ÿ\Ðàáî÷èé ñòîë\Elite Role Play v5\gamemodes\Elite.pwn(21453) : error 029: invalid expression, assumed zero
C:\Documents and Settings\ÿ\Ðàáî÷èé ñòîë\Elite Role Play v5\gamemodes\Elite.pwn(21454) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

 

 

помогите пожалуйста.

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0
22 часа назад, MIhail280011 сказал:
  Код (открыть спойлер)


//unbanip
CMD:unbanip(playerid, params[])
{
    new type[128],string[128];
    if(sscanf(params, "s[128]", type)) SendClientMessage(playerid, -1, "USAGE: /unbanip [Players IP]");
    else
    {
        if(PlayerInfo[playerid][pPlayerLogged] == 0) return SendClientMessage(playerid, -1, "* You are not logged in!");//21453
        if(PlayerInfo[playerid][pAdminLevel] >= 1)//21454
        {
            format(string, sizeof(string),"unbanip %s", type);
            SendRconCommand(string);
            SendRconCommand("reloadbans");
            format(string, sizeof(string), "AdmWarning: %s has unbanned IP %s", Name( playerid ), type);
            SendAdminMessage(-1,string);
        }
        else
        {
            return SendClientMessage(playerid, -1 ,"You dont have access!");
        }
    }
    return true;
}
//unbanip

 

C:\Documents and Settings\ÿ\Ðàáî÷èé ñòîë\Elite Role Play v5\gamemodes\Elite.pwn(21453) : error 029: invalid expression, assumed zero
C:\Documents and Settings\ÿ\Ðàáî÷èé ñòîë\Elite Role Play v5\gamemodes\Elite.pwn(21454) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

 

 

помогите пожалуйста.

Ну так строки с ошибкой скинь,ибо мы не ванги что-бы гадать по цифрам.

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Ilya_Piano
      By Ilya_Piano
      Помогите пожалуйста, как из этого мода убрать систему автошколы? просто как таковой надобности в этой системе нету как и в других лицензиях, а как убрать её я не понимаю, помогите пж, буду благодарен <3
      skrilax.amx
      skrilax.pwn
    • a0724712
      By a0724712
      Здравствуйте, решил не давно взять с форума вашего систему дальнобой, но выдаёт следующие ошибки
      D:\by paphsheia\gamemodes\new.pwn(6903) : loose indentation
      D:\by paphsheia\gamemodes\new.pwn(6964) : warning 216: nested comment
      D:\by paphsheia\gamemodes\new.pwn(6982) : warning 216: nested comment
      D:\by paphsheia\gamemodes\new.pwn(6994) : loose indentation
      D:\by paphsheia\gamemodes\new.pwn(6900) : symbol is never used: "playerid"
      D:\by paphsheia\gamemodes\new.pwn(7293) : loose indentation
      D:\by paphsheia\gamemodes\new.pwn(7304) : loose indentation
      D:\by paphsheia\gamemodes\new.pwn(8750) : error 017: undefined symbol "dalnoboy"
      D:\by paphsheia\gamemodes\new.pwn(8750) : error 008: must be a constant expression; assumed zero
      D:\by paphsheia\gamemodes\new.pwn(8750) : error 036: empty statement
      D:\by paphsheia\gamemodes\new.pwn(8750) : fatal error 107: too many error messages on one line
       
      Compilation aborted.
       
      Pawn compiler 3.2.3664 Copyright (c) 1997-2017, ITB CompuPhase
       
       
      4 Errors.
       
       
       
      case dalnoboy;//вот на этой строке даёт ошибку
       {
        if(!IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
        {
            SendClientMessage(playerid, RED,"Наебать решил? иди ищи прицеп!");
            DisablePlayerCheckpoint(playerid2);
            return true;
        }
        DisablePlayerCheckpoint(playerid);
        TogglePlayerControllable(playerid,0);
        SendClientMessage(playerid, RED,"Подождите какое-то време пока разгрузят фуру!");
        SetTimerEx("RazgruzFurui",25000,false,"i",playerid);
       }
       else if(Checkpoint[playerid] == 2)