[Ajuda] Mysql
#8

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 `Nome`='%s'",
    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,
    Nome(playerid));
    mysql_tquery(Conexao, Query, "", "");
    return 1;
}
Veja agora
Reply


Messages In This Thread
Mysql - by LuisFerreira - 27.05.2015, 02:59
Re: Mysql - by Mark009 - 27.05.2015, 03:38
Re: Mysql - by GustavoSouza - 27.05.2015, 11:17
Re: Mysql - by LuisFerreira - 27.05.2015, 11:19
Re: Mysql - by GabrielDias_Invision - 27.05.2015, 12:26
Re: Mysql - by Smith. - 27.05.2015, 14:09
Re: Mysql - by LuisFerreira - 27.05.2015, 14:34
Re: Mysql - by Smith. - 27.05.2015, 14:56
Re: Mysql - by Jimmmy - 27.05.2015, 16:31
Re: Mysql - by LuisFerreira - 28.05.2015, 19:56

Forum Jump:


Users browsing this thread: 2 Guest(s)