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;
}
(566) : error 001: expected token: ";", but found "-identifier-"
(566) : warning 213: tag mismatch
(566) : error 001: expected token: ",", but found ";"
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; }
I got to that, thought there would be something on BlueG's wiki of his MySQL plugin.
|