If you are using sqlx, then you should do this with SQL_ThreadQuery. Anyway try this:
PHP Code:
// Connect to SQL
new Handle:SqlConnect = SQL_Connect(g_hTuple, ErrorCode, g_Error, 511)
if(SqlConnect == Empty_Handle)
{
log_amx("SQL Error: %s", g_Error)
return PLUGIN_HANDLED;
}
// Create Handle
new Handle:Query
Query = SQL_PrepareQuery(SqlConnect, "SELECT * FROM `cuentas` WHERE (`Nombre` = '%s')", cuenta[id]) //--> line 393
// Query Execute ?
if (SQL_Execute(Query))
{
if (!SQL_NumResults(Query))
{
crear_contrasenia(id)
}
else
{
mensajes_cuenta(id, 1)
client_print(id, print_center, "Esa cuenta ya existe!")
show_menu_cuenta(id)
}
SQL_FreeHandle(Query)
SQL_FreeHandle(SqlConnect)
return PLUGIN_HANDLED;
}
SQL_FreeHandle(SqlConnect)
__________________