I need help with saving fighting styles. (y_ini)
#1

So I have this dialog and already defined Fighting in my script but how I could make it saveable?

pawn Код:
if (dialogid == dregister2)
    {
        if (response)
        {
            if (listitem == 0)
            {
                SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
                SendClientMessage(playerid, COLOUR_LIGHTBLUE, "You have changed your fighting style to - Normal");
            }
            if (listitem == 1)
            {
                SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
                SendClientMessage(playerid, COLOUR_LIGHTBLUE, "You have changed your fighting style to - Boxing");
            }
            if (listitem == 2)
            {
                SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
                SendClientMessage(playerid, COLOUR_LIGHTBLUE, "You have changed your fighting style to - KungFu");
            }
            if (listitem == 3)
            {
                SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
                SendClientMessage(playerid, COLOUR_LIGHTBLUE, "You have changed your fighting style to - Knee Head");
            }
            if (listitem == 4)
            {
                SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
                SendClientMessage(playerid, COLOUR_LIGHTBLUE, "You have changed your fighting style to - Grab Kick");
            }
            if (listitem == 5)
            {
                SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
                SendClientMessage(playerid, COLOUR_LIGHTBLUE, "You have changed your fighting style to - Elbow");
            }
        }
        else
        {
            SendClientMessage(playerid, COLOUR_LIGHTBLUE, "You selected 'cancel'");
        }
    }
Reply


Messages In This Thread
I need help with saving fighting styles. (y_ini) - by TrueForYourSelf - 20.02.2013, 11:36
Re: I need help with saving fighting styles. (y_ini) - by TrueForYourSelf - 20.02.2013, 12:42
Re: I need help with saving fighting styles. (y_ini) - by TrueForYourSelf - 20.02.2013, 13:18

Forum Jump:


Users browsing this thread: 2 Guest(s)