SetPlayerSpecialAction not working correct
#1

This is a reaction, of some posts on the (inoffical) german SA:MP forums.

It's about, thats SetPlayerSpecial Action is probaly not working correct.

SpecialAction 12 (SPECIAL_ACTION_SITTING)
SpecialAction 24 (SPECIAL_ACTION_CUFFED)
SpecialAction 25 (SPECIAL_ACTION_CARRY)

This actions are not working in 0.3x (R1(-2))

SpecialAction 24 worked fine in 0.3e.
Some posts confirmed, that SpecialAction 12 is not working in 0.3e, too.

I tried it on a blank Script only with this Command

pawn Код:
CMD->test(playerid)
{
    ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"SpecialAction","0\n1\n2\n3\n4\n5\n6\n7\n8\n10\n11\n12\n13\n20\n21\n22\n23\n24\n25","Set","Back");
    return true;
}
and this in Dialogresponse
pawn Код:
public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[])
{
    switch(dialogid)
    {
        case 1:
        {
            if(response)
            {
                SetPlayerSpecialAction(playerid, strval(inputtext));
                SendClientMessage(playerid,-1,inputtext);
                return true;
            }
        }
    }
    return true;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)