SA-MP Forums Archive
[HELP]Money Transfer with Dialogs - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Money Transfer with Dialogs (/showthread.php?tid=135481)



[HELP]Money Transfer with Dialogs - _soad_ - 20.03.2010

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 :>