[HELP]Money Transfer with Dialogs
#1

Hey, i've made a little script, to send other players money with Input dialog.

pawn Код:
if(dialogid == Geld)
    {
      if(response == 1)
      {
      new aname[MAX_PLAYER_NAME], string[256] ;
            GetPlayerName(playerid, aname, sizeof(aname));
            GetPlayerName(playerid, aname, sizeof(playerid));
            format(string, sizeof(string), "Money from %s: %s", aname, inputtext);
            GivePlayerMoney(playerid, 0);

            new name[MAX_PLAYER_NAME];
            GetPlayerName(playerid, name, sizeof(name));
            GivePlayerMoney(playerid, -0);
            format(string, sizeof(string), "You send to %s money:\n %s", playerid, inputtext);
            ShowPlayerDialog(playerid, Geld, DIALOG_STYLE_MSGBOX, "Butler:",string, "Ok", "SchlieЯen" );
        }
    }
But i do not know, how to give the other player
the Money, which the sender has put in the dialog.

Pls help me :>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)