Help Me!! Dialog Input
#1

DELETE
Reply
#2

any one ?
Reply
#3

Do you want to have only the Dialog for your "Enter the amount ..." message, or for all messages?
Reply
#4

Quote:
Originally Posted by TheDrx
Посмотреть сообщение
Do you want to have only the Dialog for your "Enter the amount ..." message, or for all messages?
trust enter the amount
Reply
#5

i want to make a withdraw that type the amount you want withdraw in dialog input
Reply
#6

any one
Reply
#7

here u go
dialog - edit name of dialog
Код:
 if(dialogid == DIALOG_NAME && response == 1)
{
 new amount = strval(inputtext);
 if (amount > PlayerInfo[playerid][pAccount] || amount < 1)
	{
		SendClientMessageEx(playerid, COLOR_GRAD2, "   You don't have that much!");
		return 1;
	}
	if(gettime()-GetPVarInt(playerid, "LastTransaction") < 10) return SendClientMessageEx(playerid, COLOR_GRAD2, "You can only make a transaction once every 10 seconds, please wait!");
    SetPVarInt(playerid, "LastTransaction", gettime());
	GivePlayerCash(playerid,amount);
	PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-amount;
	format(string, sizeof(string), "  You have withdrawn $%s from your account. Current balance: $%s ", number_format(amount), number_format(PlayerInfo[playerid][pAccount]));
	SendClientMessageEx(playerid, COLOR_YELLOW, string);
	OnPlayerStatsUpdate(playerid);
}
command withdraw
Код:
COMMAND:withdraw(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid, 15.0, 2308.7346, -11.0134, 26.7422))
	{
		SendClientMessageEx(playerid, COLOR_GREY, "You are not in a bank");
		return 1;
	}
    if(PlayerInfo[playerid][pFreezeBank] == 1) return SendClientMessageEx(playerid, COLOR_GREY, "The Bank Is CLose Now");
}
not tested hope works.
Reply
#8

DELETE
Reply
#9

Do same thing like up.

but first show the first input dialog where player has to press the player's id
then check if the number that player has entered is existing playerid
if the id is correct show the other part of id where u can withdraw or idk what thats is .

PS im with phone
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)