PHP Code:
stock SalvarDados(playerid)
{
new Query[600];
mysql_format(IDConexao, Query, sizeof(Query), "UPDATE `users` SET `Skin`=%d, `Admin`=%d, `horav`=%d, `mimv`=%d, `segv`=%d, `matout`=%d, `morreut`=%d, `matou`=%d, `matobandidos`=%d, `matouz`=%d, `vida`=%d, `temperatura`=%f, `fome`=%d, `sede`=%d, `spawnx`=%f, `spawny`=%f, `spawnz`=%f WHERE `Nome`='%s'",
PlayerLogin[playerid][Skin],
PlayerLogin[playerid][Admin],
PlayerLogin[playerid][horav],
PlayerLogin[playerid][mimv],
PlayerLogin[playerid][segv],
PlayerLogin[playerid][matout],
PlayerLogin[playerid][morreut],
PlayerLogin[playerid][matou],
PlayerLogin[playerid][matoubandidos],
PlayerLogin[playerid][matouz],
PlayerLogin[playerid][vida],
PlayerLogin[playerid][temperatura],
PlayerLogin[playerid][fome],
PlayerLogin[playerid][sede],
PlayerLogin[playerid][spawnx],
PlayerLogin[playerid][spawny],
PlayerLogin[playerid][spawnz],
Name(playerid));
mysql_tquery(IDConexao, Query, "DadosSalvos", "i", playerid);
return 1;
}
forward DadosSalvos(playerid);
public DadosSalvos(playerid){
return printf("Conta salva id: %d", PlayerLogin[playerid][ID]);
}
use '%s' sempre que for string, se for qualquer outro tipo nгo precisa.