Walkstyle
#1

Hello. I got a problem with my /walk cmd. It pops up a dialog where you can choose your walking style. But it dosent change.

This is my ondialogresponse code:

pawn Код:
if(dialogid == WALKMENU)
{
    if(listitem == 0)
    {
        SetPlayerWalkingStyle (playerid, WALK_NORMAL);
        SendClientMessage(playerid, COLOR_GREEN, " Your walk has been set!");
    }
    if(listitem == 1)
    {
        SetPlayerWalkingStyle (playerid, WALK_PED);
        SendClientMessage(playerid, COLOR_GREEN, " Your walk has been set!");
    }
    if(listitem == 2)
    {
        SetPlayerWalkingStyle (playerid, WALK_GANGSTA);
        SendClientMessage(playerid, COLOR_GREEN, " Your walk has been set!");
    }
    if(listitem == 3)
    {
        SetPlayerWalkingStyle (playerid, WALK_GANGSTA2);
        SendClientMessage(playerid, COLOR_GREEN, " Your walk has been set!");
    }
    if(listitem == 4)
    {
        SetPlayerWalkingStyle (playerid, WALK_OLD);
        SendClientMessage(playerid, COLOR_GREEN, " Your walk has been set!");
    }
    if(listitem == 5)
    {
        SetPlayerWalkingStyle (playerid, WALK_FAT_OLD);
        SendClientMessage(playerid, COLOR_GREEN, " Your walk has been set!");
    }
    if(listitem == 6)
    {
        SetPlayerWalkingStyle (playerid, WALK_LADY);
        SendClientMessage(playerid, COLOR_GREEN, " Your walk has been set!");
    }
    if(listitem == 7)
    {
        SetPlayerWalkingStyle (playerid, WALK_WHORE);
        SendClientMessage(playerid, COLOR_GREEN, " Your walk has been set!");
    }
    if(listitem == 8)
    {
        SetPlayerWalkingStyle (playerid, WALK_DEFAULT);
        SendClientMessage(playerid, COLOR_GREEN, " Your walk has been set!");
        }
    }
It compiles with no errors. but it dosent set the walking style. Any reason why?

Thanks, Alex
Reply


Messages In This Thread
Walkstyle - by BizzyD - 24.01.2011, 08:45
Re: Walkstyle - by Grim_ - 24.01.2011, 09:33
Re: Walkstyle - by Lorenc_ - 24.01.2011, 09:34

Forum Jump:


Users browsing this thread: 1 Guest(s)