Quando tento verificar se uma conta já existe no meu sistema de login, encontro o seguinte erro
** [MySQL]: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''GH_CEO'' at line 1
Pergunta
GuilhermeHecher
Quando tento verificar se uma conta já existe no meu sistema de login, encontro o seguinte erro
** [MySQL]: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''GH_CEO'' at line 1
Código responsável pela verificação:
function:Player_Init(playerid) { static const empty_player[playerData]; PlayerData[playerid] = empty_player; GetPlayerName(playerid, PlayerData[playerid][pUsername], MAX_PLAYER_NAME); new query[103]; mysql_format(g_iHandle, query, sizeof query, "SELECT * FROM `characters` WHERE `AcountName` = '%s' LIMIT 1", PlayerData[playerid][pUsername]); mysql_tquery(g_iHandle, query, "r@Player_Init", "d", playerid); return true; }Link para o comentário
Compartilhar em outros sites
0 respostass a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.