I am unable to use KEY_WALK for a team but for other team it works.
#1

Yeah it sounds strange,Suddenly KEY_WALK function has stopped working for Team A,but it works fine for TEAM B.


And its problem with KEY_WALK only,If i change KEY_WALK to other keys it works for Team A too can you tell me reason ?


One of Team A Code.


pawn Код:
if(PRESSED(KEY_WALK))
            {
            if(team[playerid] == TEAM_A)
            {
            if(pInfo[playerid][pClass] == FROZER)
            {
            if(gettime() - 13 < Abilitys[playerid][FrozenMakerAb]) return GameTextForPlayer(playerid,"~w~ Still Time left",1000,5);
            {
            foreach(Player,i)
            {
            switch(GetPlayerSkin(i))
            {
            case newbies://I have defined numbers(skin ids) of team B that can be frozen)
                                                        {
            if(GetDistanceBetweenPlayers(playerid,i) < 7.0)
            {
            GetClosestPlayer(i);
            TogglePlayerControllable(i, 0);
            SetTimerEx("ClearF",1800,0,"i",i);
                                                                }
                                                        }
                                                }
                                        }
                                }
                        }
                }
        }
Reply
#2

So a little side note: you should read this
Reply
#3

Well i will fix the indention if you have solution to my problem please post it
Reply
#4

why is there a
pawn Код:
case newbie:
in a switch that will give skinids
Reply
#5

@Big
Quote:

case newbies://I have defined numbers(skin ids) of team B that can be frozen)

I have defined newbies at top of the script with skin ids of team B
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)