diff --git a/scripting/player_prefs.sma b/scripting/player_prefs.sma index e7e76bd..6072e4c 100644 --- a/scripting/player_prefs.sma +++ b/scripting/player_prefs.sma @@ -151,7 +151,7 @@ public bool: native_set_key_default_value(iPlugin, iArgs) { if (g_hSqlTuple != Empty_Handle) { formatex(g_szQuery, charsmax(g_szQuery), "INSERT INTO `pp_keys` (`key`, `default_value`) VALUES ('%s', '%s') \ - ON DUPLICATE KEY UPDATE `default_value` = VALUES(`default_value`);", + ON DUPLICATE KEY UPDATE `default_value` = VALUES (`default_value`);", szKey, szDefaultValue ); @@ -205,7 +205,7 @@ stock SetPreference(iPlayer, szKey[], szValue[], szDefaultValue[]) { // И даже если начинать с ключа, в колбеке всё ровно перепроверять g_tKeysIds (szData[3]) т.к. сраная асинхронщина formatex(g_szQuery, charsmax(g_szQuery), "INSERT INTO `pp_keys` (`key`, `default_value`) VALUES ('%s', '%s') \ - ON DUPLICATE KEY UPDATE `default_value` = VALUES(`default_value`);", + ON DUPLICATE KEY UPDATE `default_value` = VALUES (`default_value`);", szKey, szDefaultValue ); @@ -365,7 +365,7 @@ public ThreadQuery_Handler(iFailState, Handle: hQuery, szError[], iError, szData formatex(g_szQuery, charsmax(g_szQuery), "INSERT INTO `pp_preferences` (`player_id`, `key_id`, `value`) VALUES (%d, %d, '%s') \ - ON DUPLICATE KEY UPDATE `value` = VALUES(`value`);", + ON DUPLICATE KEY UPDATE `value` = VALUES (`value`);", g_iPlayerDatabaseId[iPlayer], iKeyId, szData[4] );