#3

Your code is all set to one line, here try this:
PHP код:
        Loose intendi tried evry possible thingstill its appearing somewhere in here
        
if(dialogid == BANK_MENU_2)
        {
        if(
response)
        {
        new 
username[24];
        if(
sscanf(inputtext"s[24]"username))
        {
        
ShowPlayerDialog(playeridBANK_MENU_2DIALOG_STYLE_INPUT""RED"Bank - Transfer Funds"""STEELBLUE"Please enter the exact username of the player to whom you would like to transfer funds:""Proceed""Cancel");
        
SendClientMessage(playerid, -1""RED"ERROR: "GREY"Please enter a valid USERNAME");
        return 
1;
        }
        if(
strcmp(GetName(playerid), usernametrue) == 0)
        {
        
ShowPlayerDialog(playeridBANK_MENU_2DIALOG_STYLE_INPUT""RED"Bank - Transfer Funds"""STEELBLUE"Please enter the exact username of the player to whom you would like to transfer funds:""Proceed""Cancel");
        
SendClientMessage(playerid, -1""RED"ERROR: "GREY"You cannot transfer funds to your own account!");
        return 
1;
        }
        
format(Bank_Transfer_To[playerid], 24"%s"username);
        
mysql_format(MySQLgQuery256"SELECT * FROM `"Banks_Table"` WHERE `Holder` = '%e'"username);
        
mysql_tquery(MySQLgQuery"Safe_IsBankHolder""i"playerid);
        
/*format(str, sizeof str, ""STEELBLUE"You're now transferring funds to "RED"%s"STEELBLUE". Please enter a amount to transfer:", username);
        ShowPlayerDialog(playerid, BANK_MENU_2_1, DIALOG_STYLE_INPUT, ""RED"Bank - Transfer Funds", str, "Transfer", "Cancel");
        */
}
        }
        
//error line if(dialogid == BANK_MENU_2_1)
        
{
        if(
response)
        {
        new 
moneystr[256];
        if((
sscanf(inputtext"i"money)))
            {
        
format(strsizeof str""STEELBLUE"You're now transferring funds to "RED"%s"STEELBLUE". Please enter a amount to transfer:"Bank_Transfer_To[playerid]);
        
ShowPlayerDialog(playeridBANK_MENU_2_1DIALOG_STYLE_INPUT""RED"Bank - Transfer Funds"str"Transfer""Cancel");
        
SendClientMessage(playerid, -1""RED"ERROR: "GREY"Please enter a valid amount!");
        return 
1;
        }
        if(
Bank_Balance[playerid] < money)
        {
        
format(strsizeof str""STEELBLUE"You're now transferring funds to "RED"%s"STEELBLUE". Please enter a amount to transfer:"Bank_Transfer_To[playerid]);
        
ShowPlayerDialog(playeridBANK_MENU_2_1DIALOG_STYLE_INPUT""RED"Bank - Transfer Funds"str"Transfer""Cancel");
        
SendClientMessage(playerid, -1""RED"ERROR: "GREY"You don't have enough money!");
        return 
1;
        }
        if(
IsPlayerConnected(GetPlayerID(Bank_Transfer_To[playerid])))
        {
        
format(Bank_Transfer_From[(GetPlayerID(Bank_Transfer_To[playerid]))], 24"%s"GetName(playerid));
        
format(strsizeof str""RED"Bank of SFS "WHITE"- "PREMIUM"Your bank account has been credited with "RED"$%i "PREMIUM"by "RED"%s"moneyGetName(playerid));
        
SendClientMessage(GetPlayerID(Bank_Transfer_To[playerid]), -1str);
        
Bank_Balance[GetPlayerID(Bank_Transfer_To[playerid])] += money;
        }
        else
        {
        
mysql_format(MySQLstrsizeof str"UPDATE "Banks_Table" SET Balance = Balance + '%i' WHERE Holder = '%e'"moneyBank_Transfer_To[playerid]);
        
mysql_tquery(MySQLstr"""");
        }
        
format(strsizeof str""RED"Bank of SFS "WHITE"- "PREMIUM"You have successfully transferred "RED"$%i "PREMIUM"to "RED"%s"PREMIUM"."moneyBank_Transfer_To[playerid]);
        
SendClientMessage(playerid, -1str);
        
Bank_Balance[playerid] -= money;
        
format(IQuery256"4[Bank of SFS] 1 - 14%s(%i) transferred 4$%i 14to %s!"GetName(playerid), playeridmoneyBank_Transfer_To[playerid]);
        
IRC_GroupSay(gGroupAdminIDIRC_AdminIQuery);
        }
        }
        
fireranger11 is online now  Add to fireranger11's Reputation  Report Post 
Reply


Messages In This Thread
Help - by fireranger11 - 19.05.2017, 15:29
Re: Help +rep - by Antenastyle - 19.05.2017, 15:52
Re: Help +rep - by aoky - 19.05.2017, 15:52
Re: Help +rep - by DobbysGamertag - 19.05.2017, 15:58
Re: Help +rep - by Antenastyle - 19.05.2017, 16:13
Re: Help +rep - by fireranger11 - 19.05.2017, 16:19
Re: Help +rep - by Hansrutger - 19.05.2017, 16:21
Re: Help +rep - by Antenastyle - 19.05.2017, 16:31
Re: Help +rep - by fireranger11 - 19.05.2017, 16:48
Re: Help +rep - by Antenastyle - 19.05.2017, 16:58

Forum Jump:


Users browsing this thread: 1 Guest(s)