03.11.2018, 15:33
Quote:
Vocк estб fazendo errado.
Somente strings (%s) precisam de aspas, o resto nгo. WHERE й um argumento que precisa de complemento: WHERE nomedojogador = '%s' pawn Code:
|
Ele nгo estб fazendo errado quando vocк se refere as aspas nos inteiros. O SGBD automaticamente retira elas quando o tipo do campo й inteiro e o que tem dentro das aspas й um inteiro, se vocк passar um caractere nas aspas de um campo do tipo inteiro ai sim ele vai acusar um erro.
@topic
Tenta essa linha no lugar dessa que vocк ta usando:
pawn Code:
mysql_format(Conexao, query, sizeof(query), "UPDATE contas SET nome='%s', senha='%s', skin=%d, dinheiro=%d,
level=%d, vida=%f, colete=%f, procurado=%d, administrador=%d, moderador=%d, corregedor=%d, comandante=%d,
patente=%d, ajudante=%d, temjetpack=%d, profissao=%d WHERE nome='%s'",
Pname(playerid),
pInfo[playerid][Senha],
GetPlayerSkin(playerid),
GetPlayerMoney(playerid),
GetPlayerScore(playerid),
GetPlayerArmour(playerid),
GetPlayerWantedLevel(playerid),
pInfo[playerid][Administrador],
pInfo[playerid][Moderador],
pInfo[playerid][Corregedor],
pInfo[playerid][Comandante],
pInfo[playerid][Patente],
pInfo[playerid][Ajudante],
pInfo[playerid][TemJetpack],
pInfo[playerid][Profissao],
Pname(playerid));