11.08.2011, 03:23
pawn Код:
new amount = inputtext;
Please help.
new amount = inputtext;
new amount[128] = inputtext;
case 1336:
{
//new amount[128] = inputtext;
//if(Player[playerid][Money] >= amount)
//{
// SendClientMessage(playerid, WHITE, "You don't have that much cash on you.");
//}
//else
{
new tmp[256], JFS[256];
//Player[playerid][BankMoney] += amount;
format(tmp, sizeof(tmp), "{FFFFFF}Account: %s", RemoveUnderScore(playerid));
format(tmp, sizeof(tmp), "{FFFFFF}New Balance: {254C01}$%s", Player[playerid][BankMoney]);
strins(JFS, tmp, strlen(JFS));
ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_MSGBOX, "Southern Life - New Balance.", tmp, "OK", "");
return 1;
}
}
new amount = strval(inputtext);
format(tmp, sizeof(tmp), "{FFFFFF}Account: %s", RemoveUnderScore(playerid));
format(tmp, sizeof(tmp), "{FFFFFF}New Balance: {254C01}$%s", Player[playerid][BankMoney]);
strins(JFS, tmp, strlen(JFS));
format(tmp, sizeof(tmp), "{FFFFFF}Account: %s\n{FFFFFF}New Balance: {254C01}$%d", RemoveUnderScore(playerid), Player[playerid][BankMoney]);