26.06.2016, 02:19
Buenas, їCuбntas celdas mбs le tengo que subir a este guardado para que deje de tirarme el error por falta de celdas en la consola MYSQL? asн tengo este guardado.
Estos son los errores
Код:
CALLBACK: GuardarNegocio_(idx) { new sql[1000], playerid; format(sql, 1000, "UPDATE negocios SET 'nPosX' = '%f', 'nPosY' = '%f', 'nPosZ' = '%f', 'nIntX' = '%f', 'nIntY' = '%f', 'nIntZ' = '%f', 'nInterior' = '%d', 'nIntExt' = '%d', 'nVirtualWorld' = '%d', 'nEstado' = '%d' WHERE nSQLID = '%d'", NegocioInfo[idx][nPosX], NegocioInfo[idx][nPosY], NegocioInfo[idx][nPosZ], NegocioInfo[idx][nIntX], NegocioInfo[idx][nIntY], NegocioInfo[idx][nIntZ], NegocioInfo[idx][nInterior], NegocioInfo[idx][nIntExt], NegocioInfo[idx][nVirtualWorld], NegocioInfo[idx][nEstado], NegocioInfo[idx][nSQLID]); mysql_function_query(TuberiaMYSQL, sql, false, "OnQueryFinish_", "ii", 0, playerid); format(sql, 1000, "UPDATE negocios SET 'nPropietario' = '%s', 'nPrecio' = '%d', 'nPuerta' = '%d', 'nDinero' = '%d', 'nNombre' = '%s', 'nTipo' = '%d', 'nPrecioEntrada' = '%d', 'nCambios' = '%d' WHERE nSQLID = '%d'", NegocioInfo[idx][nPropietario], NegocioInfo[idx][nPrecio], NegocioInfo[idx][nPuerta], NegocioInfo[idx][nDinero], NegocioInfo[idx][nNombre], NegocioInfo[idx][nTipo], NegocioInfo[idx][nPrecioEntrada], NegocioInfo[idx][nCambios], NegocioInfo[idx][nSQLID]); mysql_function_query(TuberiaMYSQL, sql, false, "OnQueryFinish_", "ii", 0, playerid); return 1; }
Код:
7] [ERROR] ID: 1064 - Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''nPosX' = '1632.311157', 'nPosY' = '-2330.473388', 'nPosZ' = '13.546875', 'nIntX' at line 1 - Callback - OnQueryFinish_ - Query: UPDATE ev_negocios SET 'nPosX' = '1632.311157', 'nPosY' = '-2330.473388', 'nPosZ' = '13.546875', 'nIntX' = '-68.876899', 'nIntY' = '1351.605102', 'nIntZ' = '1080.210937', 'nInterior' = '6', 'nIntExt' = '0', 'nVirtualWorld' = '0', 'nEstado' = '0' WHERE nSQLID = '1' [12:32:27] [ERROR] ID: 1064 - Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''nPropietario' = 'El Estado', 'nPrecio' = '30000', 'nPuerta' = '0', 'nDinero' = ' at line 1 - Callback - OnQueryFinish_ - Query: UPDATE ev_negocios SET 'nPropietario' = 'El Estado', 'nPrecio' = '30000', 'nPuerta' = '0', 'nDinero' = '0', 'nNombre' = 'Negocio', 'nTipo' = '0', 'nPrecioEntrada' = '50', 'nCambios' = '0' WHERE nSQLID = '1'