04.05.2013, 22:11
pawn Код:
stock SaveAccountVariables(playerid)
{
new Float:a, intid, vw, Float:x, Float:y, Float:z, szQuery[1024];
GetPlayerPos(playerid, x,y,z);
vw = GetPlayerVirtualWorld(playerid);
intid = GetPlayerInterior(playerid);
GetPlayerFacingAngle(playerid, a);
format(szQuery, sizeof(szQuery), "UPDATE `Stats` SET `AdminLevel` = %d, `seeds` = %d, `weed` = %d, `pSkin` = %d, `pTier` = %d, `pFaction` = %d, `pLastx` = %f, `pLasty` = %f, `pLastz` = %f, `pRank` = '%s', `pIP` = '%s', `pInterior` = %d, `pVirtualWorld` = %d, `Money` = %d, `pLasta` = %f AND `BanReason` = '%s' WHERE `pDatabaseID` = %d",
pInfo[playerid][AdminLevel], pInfo[playerid][seeds], pInfo[playerid][weed], GetPlayerSkin(playerid), pInfo[playerid][pTier], pInfo[playerid][pFaction],x,y,z, pInfo[playerid][pRank], pInfo[playerid][pIP], intid, vw, GetPlayerMoney(playerid), a, pInfo[playerid][BanReason], pInfo[playerid][pDatabaseID]);
mysql_function_query(1, szQuery, false, "", "");
}