24.01.2011, 08:45
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:
It compiles with no errors. but it dosent set the walking style. Any reason why?
Thanks, Alex
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!");
}
}
Thanks, Alex