29.02.2012, 00:03
How i make it with dialogs? if il choose "Deposite" from DIALOG_STYLE_LIST i gete response like:
Thats how it looks atm, but on some reason it says "You didn't enter a value or it's too hight" if il choose "Deposite"
but how i can make it like typing amount and money gets to "PlayerInfo[playerid][pBank]" from "PlayerInfo[playerid][pCash]"
pawn Код:
if(listitem == 0)
{
if(!strlen(inputtext) || strlen(inputtext) > 20)
{
new string[128];
format(string, sizeof string, ""Green"Set the amount in the input field\nand hit 'Compleate' to finish!");
ShowPlayerDialog(playerid, DIALOG_BANK, DIALOG_STYLE_INPUT, ""Green"Withdraw your money", string, "Compleate", "Cancel");
}
else if(strlen(inputtext) > 0 && strlen(inputtext) < 20)
{
SendClientMessage(playerid, COLOR_RED, "You didn't enter a value or it's too hight");
}
}
but how i can make it like typing amount and money gets to "PlayerInfo[playerid][pBank]" from "PlayerInfo[playerid][pCash]"