27.05.2015, 14:09
Tenta desta maneira
pawn Код:
stock SalvarDados(playerid)
{
if(PlayerInfo[playerid][Logado] == false) return 1;
new Float:X, Float:Y, Float:Z, Query[320];
GetPlayerPos(playerid, Float:X, Float:Y, Float:Z);
mysql_format(Conexao, Query, sizeof(Query), "UPDATE `myserver` SET `Admin`='%d', `Sexo`='%d', `Idade`='%d', `Dinheiro`='%d', `Skin`='%d', `Matou`='%d', `Morreu`='%d', `PosX`=%.1f, `PosY`=%.1f, `PosZ`=%.1f WHERE `ID`='%d'",
PlayerInfo[playerid][Admin],
PlayerInfo[playerid][Sexo],
PlayerInfo[playerid][Idade],
GetPlayerMoney(playerid),
PlayerInfo[playerid][Skin],
PlayerInfo[playerid][Matou],
PlayerInfo[playerid][Morreu],
Float:X,
Float:Y,
Float:Z,
PlayerInfo[playerid][ID]);
mysql_tquery(Conexao, Query, "", "");
return 1;
}