вот нашел маленький ФС
[pwn]#include <a_samp> forward OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]);
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/style", true) == 0)
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Выберите Стиль:","NORMAL\nKNEEHEAD\nKUNGFU\nBOXING\nGRABKICK\nELBOW\n","Выбор","Отмена");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(response)
{
if(listitem == 0)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
}
if(listitem == 1)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
}
if(listitem == 2)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
}
if(listitem == 3)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
}
if(listitem == 4)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
}
if(listitem == 5)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
}
}
}
return 1;
}[/pwn]
но при вводе команды и выборе стиля боя он остается таким как и был =( (кагбэ стиль не меняется) почему так или в чем мб причина? подскажите.