function SavePlayerAccount(playerid) { GetPlayerName(playerid, pname, sizeof(pname)); GetPlayerHealth(playerid, AccountData[playerid][pHealth]); GetPlayerArmour(playerid, AccountData[playerid][pArmour]); GetPlayerPos(playerid, AccountData[playerid][posx],AccountData[playerid][posy],AccountData[playerid][posz]); format(stringsize, sizeof(stringsize), \"UPDATE \"SQL_TABLE\" SET Money = %d, AdminLevel = %d, Health = %f, Armour = %f, Bank = %d, X = %0.3f, Y = %0.3f, Z = %0.3f, WHERE Name = \'%s\'\", GetPlayerMoney(playerid), PlayerAccount[playerid][AdminLevel], AccountData[playerid][pHealth], AccountData[playerid][pArmour], PlayerAccount[playerid][bank], PlayerAccount[playerid][posx], PlayerAccount[playerid][posy], PlayerAccount[playerid][posz],pname);mysql_query(stringsize, SQL_SAVE_ACCOUNT, playerid, RegistrationSystemConnection);}
GetPlayerPos(playerid, AccountData[playerid][posx],AccountData[playerid][posy],AccountData[playerid][posz]);
GetPlayerPos(playerid, PlayerAccount[playerid][posx],PlayerAccount[playerid][posy],PlayerAccount[playerid][posz]);
function SavePlayerAccount(playerid) {GetPlayerName(playerid, pname, sizeof(pname)); GetPlayerHealth(playerid, AccountData[playerid][pHealth]); GetPlayerArmour(playerid, AccountData[playerid][pArmour]); GetPlayerPos(playerid, PlayerAccount[playerid][posx],PlayerAccount[playerid][posy],PlayerAccount[playerid][posz]); format(stringsize, sizeof(stringsize), \"UPDATE \"SQL_TABLE\" SET Money = %d, AdminLevel = %d, Health = %f, Armour = %f, Bank = %d, X = %0.3f, Y = %0.3f, Z = %0.3f, WHERE Name = \'%s\'\", GetPlayerMoney(playerid), PlayerAccount[playerid][AdminLevel], AccountData[playerid][pHealth], AccountData[playerid][pArmour], PlayerAccount[playerid][bank], PlayerAccount[playerid][posx], PlayerAccount[playerid][posy], PlayerAccount[playerid][posz],pname);mysql_query(stringsize, SQL_SAVE_ACCOUNT, playerid, RegistrationSystemConnection);}
GetPlayerPos(playerid, PlayerAccount[playerid][posx],PlayerAccount[playerid][posy],PlayerAccount[playerid][posz]); format(stringsize, sizeof(stringsize), \"UPDATE \"SQL_TABLE\" SET Money = %d, AdminLevel = %d, Health = %f, Armour = %f, Bank = %d, X = %0.3f, Y = %0.3f, Z = %0.3f, WHERE Name = \'%s\'\", GetPlayerMoney(playerid), PlayerAccount[playerid][AdminLevel], AccountData[playerid][pHealth], AccountData[playerid][pArmour], PlayerAccount[playerid][bank], PlayerAccount[playerid][posx], PlayerAccount[playerid][posy], PlayerAccount[playerid][posz],pname);
enum Accinfo {bool:Account,bool:Logged,pip[16],Float: pHealth,Float: pArmour,Float: posx,Float: posy,Float: posz,}new AccountData[MAX_PLAYERS][Accinfo];enum PA {IP[30],Money,AdminLevel,Float: Health,Float: Armour,Bank}new PlayerAccount[MAX_PLAYERS][PA];