[Ajuda] Salvar EXP com MySQL
#2

Tente assim:
PHP Code:
CMD:salvarexp(playerid)
{
    
SalvarExp(playerid);
    return 
1;
}
stock SalvarExp(playerid)
{
    new 
Query[50];
    
mysql_format(ConexaoBDDQuerysizeof(Query), "SELECT * FROM `Contas` WHERE Nick='%s'"Nome(playerid));//Nгo manjo muito e nгo sei se precisa disso.
       
mysql_query(ConexaoBDDQuerytrue);
    
format(Querysizeof(Query), "UPDATE `contas` SET `Exp`='%d'"EXP[playerid]);
    
mysql_query(ConexaoBDDQueryfalse);
    return 
1;

Utilize o comando sу para vк se funciona, se funcionar vocк apagar o comando e usar normalmente. E coloque isso no create table
PHP Code:
Exp int DEFAULT 
Reply


Messages In This Thread
Salvar EXP com MySQL - by zMorningStar - 18.12.2017, 06:20
Re: Salvar EXP com MySQL - by DelK - 18.12.2017, 10:36
Re: Salvar EXP com MySQL - by IlanZ - 18.12.2017, 12:59
Re: Salvar EXP com MySQL - by zMorningStar - 18.12.2017, 23:53

Forum Jump:


Users browsing this thread: 1 Guest(s)