Why it's not working ?
#6

Try this and if doesn't work, check your server log and see whether the message is printed.
PHP код:
stock SaveBankAccounts()
{
    new 
query[256];
    for(new 
1MAX_BANK_ACCOUNTSi++)
    {
        if(
bAccount[i][Used])
        {
            print(
"Is variable true test");
            
mysql_format(Databasequerysizeof(query), "UPDATE `BANKACCOUNTS` SET `VALUE`='%d' WHERE `ID`='%d' LIMIT 1"bAccount[i][Value], i);
            
mysql_query(Databasequery);
        }
    }

Quote:
Originally Posted by Nru
Посмотреть сообщение
EDIT: It should start from 1 because the the bankaccounts ID starts with 1 not 0
You're right, my bad. Sorry about that.
Reply


Messages In This Thread
Why it's not working ? - by Nru - 23.03.2018, 00:01
Re: Why it's not working ? - by kovac - 23.03.2018, 00:16
Re: Why it's not working ? - by Nru - 23.03.2018, 00:29
Re: Why it's not working ? - by kovac - 23.03.2018, 00:31
Re: Why it's not working ? - by Nru - 23.03.2018, 00:33
Re: Why it's not working ? - by kovac - 23.03.2018, 00:41
Re: Why it's not working ? - by Nru - 23.03.2018, 00:53
Re: Why it's not working ? - by kovac - 23.03.2018, 01:02

Forum Jump:


Users browsing this thread: 1 Guest(s)