Help me please
#1

spike strip
pawn Код:
if(strcmp(cmdtext, "/striscia", true)==0 || strcmp(cmdtext, "/str", true)==0)
    {
        if((PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) || (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) || (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3))
        {
            if (PlayerInfo[playerid][pRank] <= 5)
            {
                SendClientMessage(playerid, TEAM_BLUE_COLOR, "Le striscie chiodate sono disponibili da rank 5 in su.");
                return 1;
            }
            if(Striscia[playerid]==1 && PlayerInfo[playerid][pAdmin]<3)
            {
                SendClientMessage(playerid, TEAM_BLUE_COLOR, "Hai giа piazzato una striscia chiodata!");
                return 1;
            }
            new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
             GetPlayerPos(playerid, plocx, plocy, plocz);
            GetPlayerFacingAngle(playerid,ploca);
            CreateStrip(plocx,plocy,plocz,ploca);
            Striscia[playerid]=1;
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "HQ: %s ha posizionato una striscia chiodata", sendername);
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1)
                    {
                        SendClientMessage(i, TEAM_BLUE_COLOR, string);
                    }
                    else if(PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pLeader] == 2)
                    {
                        SendClientMessage(i, TEAM_BLUE_COLOR, string);
                    }
                    else if(PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pLeader] == 3)
                    {
                        SendClientMessage(i, TEAM_BLUE_COLOR, string);
                    }
                }
            }
        }
         return 1;
    }

    if(strcmp(cmdtext, "/rimuovistriscia", true)==0 || strcmp(cmdtext, "/rst", true)==0)
    {
        if((PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) || (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) || (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3))
        {
            if(Striscia[playerid]==0)
            {
                        SendClientMessage(playerid, TEAM_BLUE_COLOR, "Non hai piazzato nessuna striscia.");
                        return 1;
            }
             DeleteClosestStrip(playerid);
               Striscia[playerid]=0;
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "HQ: %s ha rimosso la striscia chiodata", sendername);
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1)
                    {
                        SendClientMessage(i, TEAM_BLUE_COLOR, string);
                    }
                    else if(PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pLeader] == 2)
                    {
                        SendClientMessage(i, TEAM_BLUE_COLOR, string);
                    }
                    else if(PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pLeader] == 3)
                    {
                        SendClientMessage(i, TEAM_BLUE_COLOR, string);
                    }
                }
            }
        }
        return 1;
    }

    if(strcmp(cmdtext, "/rimuovistriscie", true)==0 || strcmp(cmdtext, "/rstall", true)==0)
     {
        if (PlayerInfo[playerid][pRank] >= 5 && (PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 1) || (PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 2) || (PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 3))
        {
            DeleteAllStrip();
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "HQ: Tutte le striscie chiodate sono state rimosse per ordine di %s.", sendername);
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1)
                    {
                         Striscia[i]=0;
                        SendClientMessage(i, TEAM_BLUE_COLOR, string);
                    }
                    else if(PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pLeader] == 2)
                    {
                         Striscia[i]=0;
                        SendClientMessage(i, TEAM_BLUE_COLOR, string);
                    }
                    else if(PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pLeader] == 3)
                     {
                         Striscia[i]=0;
                        SendClientMessage(i, TEAM_BLUE_COLOR, string);
                    }
                }
            }
        }
        return 1;
    }
where is the error? why don't bursts wheels??

Sorry for my bad english i'm from italy healp me
Reply
#2

Put your code in <pawn> </pawn> (Switch < with [ and > with ] )

Also you have so many brackets..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)