MySQL Saving Account Public Function
#1

I made this, don't know if it works, or is even correct. I get


pawn Код:
forward MasterAccountSave(playerid);
public MasterAccountSave(playerid)
{
    if(AccountExists(playerid))
    {
        if(MasterAccount[playerid][mLoggedIn])
        {
             new query[300]
             mysql_format(0, query, sizeof(query), "UPDATE `Master` (password,email_address,ip_address,super_admin,old_ip) VALUES ('%s', '%s', '%s', '%d', '%s', '%d')", MasterAccount[mPassword], MasterAccount[playerid][mEmailAddress], GetPlayerIPEx(playerid), MasterAccount[playerid][mSuperAdmin], MasterAccount[playerid][mOld_IP], MasterAccount[playerid][mID];// This line
             mysql_tquery(0, query, "", "");
           
           
           
            return true;
        }
    }
    return false;
}

Erros returned:
pawn Код:
(566) : error 001: expected token: ";", but found "-identifier-"
(566) : warning 213: tag mismatch
(566) : error 001: expected token: ",", but found ";"
Reply


Messages In This Thread
MySQL Saving Account Public Function - by AMouldyLemon - 18.06.2014, 17:10
Re: MySQL Saving Account Public Function - by Danijel. - 18.06.2014, 17:14
Re: MySQL Saving Account Public Function - by Konstantinos - 18.06.2014, 17:17
Re: MySQL Saving Account Public Function - by AMouldyLemon - 18.06.2014, 17:17
Re: MySQL Saving Account Public Function - by iZN - 18.06.2014, 17:20
Re: MySQL Saving Account Public Function - by AMouldyLemon - 18.06.2014, 17:21
Re: MySQL Saving Account Public Function - by iZN - 18.06.2014, 17:31

Forum Jump:


Users browsing this thread: 5 Guest(s)