warning 209: returning values
#5

I've tried something different, so please let me know if the code written below will work or not:
pawn Код:
// Inside the command

if(!IsUserOnline(username))
{
    mysql_format(MySQL, gQuery, 256, "SELECT * FROM `"Banks_Table"` WHERE `Holder` = '%e'", username);
    mysql_tquery(MySQL, gQuery, "Safe_IsBankHolder", "i", playerid);
    return 1;
}
pawn Код:
function Safe_IsBankHolder(playerid)
{
    new rows, fields, str[128];
    cache_get_data(rows, fields);
    if(rows)
    {
        format(str, sizeof str, ""STEELBLUE"You're now transferring funds to "RED"%s"STEELBLUE". Please enter a amount to transfer:", Bank_Transfer_To[playerid]);
        ShowPlayerDialog(playerid, BANK_MENU_2_1, DIALOG_STYLE_INPUT, ""RED"Bank - Transfer Funds", str, "Transfer", "Cancel");
    }
    else
    {
        SendClientMessage(playerid, -1, ""RED"ERROR: "GREY"The specified USERNAME doesn't own a bank account!");
    }
    return 1;
}
Reply


Messages In This Thread
warning 209: returning values - by biker122 - 14.04.2016, 13:37
Re: warning 209: returning values - by Konstantinos - 14.04.2016, 13:48
Re: warning 209: returning values - by biker122 - 14.04.2016, 13:53
Re: warning 209: returning values - by Konstantinos - 14.04.2016, 14:00
Re: warning 209: returning values - by biker122 - 14.04.2016, 14:18
Re: warning 209: returning values - by Konstantinos - 14.04.2016, 14:25
Re: warning 209: returning values - by biker122 - 14.04.2016, 14:33
Re: warning 209: returning values - by Konstantinos - 14.04.2016, 14:40
Re: warning 209: returning values - by biker122 - 14.04.2016, 15:35

Forum Jump:


Users browsing this thread: 1 Guest(s)