02.05.2014, 07:59
pawn Код:
new query[250], Float:X, Float:Y, Float:Z, Float:FacingAngle;
GetPlayerPos(playerid, X,Y,Z);
GetPlayerFacingAngle(playerid, FacingAngle);
mysql_format(MysqlCon, query, sizeof(query), "UPDATE `players` SET `Admin`=%d, `Vip`=%d, `Money`=%d, `Score`=%d, `TrustedLevel`=%d, `Deaths`=%d, `Kills`=%d, `X`=%.1f, `Y`=%.1f, `Z`=%.1f, 'FacingAngle'=%.1f, `Interior`=%d, 'VW'=%d WHERE `ID`=%d AND `user`='%e'",
pInfo[playerid][pAdmin],
pInfo[playerid][pVip],
GetPlayerMoney(playerid),
GetPlayerScore(playerid),
pInfo[playerid][pTrustedLevel],
pInfo[playerid][pDeaths],
pInfo[playerid][pKills],
X,
Y,
Z,
GetPlayerInterior(playerid),
GetPlayerVirtualWorld(playerid),
FacingAngle,
pInfo[playerid][pID],
PlayerName(playerid));