20.03.2010, 19:05
Hey, i've made a little script, to send other players money with Input dialog.
But i do not know, how to give the other player
the Money, which the sender has put in the dialog.
Pls help me :>
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" );
}
}
the Money, which the sender has put in the dialog.
Pls help me :>