This is a mobile optimized page that loads fast, if you want to load the real page, click this text.

Проблема Когда создаю аккаунт вылазит данная ошибка

𝓨𝓾𝓴𝓲 𝓜𝓸𝓻𝓲

Активный участник
5 Дек 2021
1
0
41
06:59:12.549 [Error] | MySQL => MySqlConnector.MySqlException (0x80004005): Field 'shtraf' doesn't have a default value
---> MySqlConnector.MySqlException (0x80004005): Field 'shtraf' doesn't have a default value
at async ValueTask<PayloadData> MySqlConnector.Core.ServerSession.ReceiveReplyAsyncAwaited(ValueTask<ArraySegment<byte>> task) in /_/src/MySqlConnector/Core/ServerSession.cs:line 820
at async Task MySqlConnector.Core.ResultSet.ReadResultSetHeaderAsync(IOBehavior ioBehavior) in /_/src/MySqlConnector/Core/ResultSet.cs:line 49
at MySqlConnector.MySqlDataReader.ActivateResultSet(CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlDataReader.cs:line 118
at MySqlConnector.MySqlDataReader.CreateAsync(CommandListPosition commandListPosition, ICommandPayloadCreator payloadCreator, IDictionary`2 cachedProcedures, IMySqlCommand command, CommandBehavior behavior, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlDataReader.cs:line 437
at MySqlConnector.Core.CommandExecutor.ExecuteReaderAsync(IReadOnlyList`1 commands, ICommandPayloadCreator payloadCreator, CommandBehavior behavior, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/Core/CommandExecutor.cs:line 60
at MySqlConnector.MySqlCommand.ExecuteNonQueryAsync(IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlCommand.cs:line 264
at GreenwichSDK.MySQL.QueryAsync(String command) in C:\Users\Home\Desktop\BroadSafe\dotnet\resources\GameMode\GreenwichSDK\MySQL.cs:line 150
 

DeAAmoN

Специалист
18 Мар 2022
483
161
94
Field 'shtraf' doesn't have a default value
Зайди в базу и в поле 'shtraf' выстави значение по умолчанию. К примеру 0 (логично что у нового игрока не может быть штрафа)