Walk style problem
#1

can you guys see the problem here what i doing wrong

pawn Код:
if (!(newkeys & KEY_WALK) && (oldkeys & KEY_WALK)) {
    if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT)
    {
        return 1;
    }

    switch(PlayerInfo[playerid][pWalk])
    {
        case 1:
        {
            LoopingAnim(playerid,"PED","WALK_gang1",4.1,1,1,1,1,1);
        }
        case 2:
        {
            LoopingAnim(playerid,"PED","WOMAN_walksexy",4.1,1,1,1,1,1);
        }
        case 3:
        {
            LoopingAnim(playerid,"PED","WALK_armed",4.1,1,1,1,1,1);
        }
        case 4:
        {
            LoopingAnim(playerid,"PED","WALK_civi",4.1,1,1,1,1,1);
        }
        case 5:
        {
            LoopingAnim(playerid,"PED","WALK_csaw",4.1,1,1,1,1,1);
        }
        case 6:
        {
            LoopingAnim(playerid,"PED","WALK_gang2",4.1,1,1,1,1,1);
        }
        case 7:
        {
            LoopingAnim(playerid,"PED","WALK_drunk",4.1,1,1,1,1,1);
        }
        case 8:
        {
            LoopingAnim(playerid,"PED","WALK_fat",4.1,1,1,1,1,1);
        }
        case 9:
        {
            LoopingAnim(playerid,"PED","WALK_fatold",4.1,1,1,1,1,1);
        }
        case 10:
        {
            LoopingAnim(playerid,"PED","WALK_old",4.1,1,1,1,1,1);
        }
        case 11:
        {
            LoopingAnim(playerid,"PED","WALK_player",4.1,1,1,1,1,1);
        }
        case 12:
        {
            LoopingAnim(playerid,"PED","WALK_rocket",4.1,1,1,1,1,1);
        }
        case 13:
        {
            LoopingAnim(playerid,"PED","WALK_shuffle",4.1,1,1,1,1,1);
        }
        case 14:
        {
            LoopingAnim(playerid,"PED","WOMAN_walknorm",4.1,1,1,1,1,1);
        }
        case 15:
        {
            LoopingAnim(playerid,"PED","WOMAN_walkpro",4.1,1,1,1,1,1);
        }
        case 16:
        {
            LoopingAnim(playerid,"PED","WOMAN_walkbusy",4.1,1,1,1,1,1);
        }
        case 17:
        {
            LoopingAnim(playerid,"PED","WOMAN_walknorm",4.1,1,1,1,1,1);
        }
        case 18:
        {
            LoopingAnim(playerid,"PED","Walk_Wuzi",4.1,1,1,1,1,1);
        }
    }
Reply
#2

Fixed but one problem when i have change walk style. and press alt he start walk i want it so when you press he walk and when you not puch he stop walk?
Reply
#3

bump
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)