lightphoenix2 / LPX

LPX for Rocket
5 stars 8 forks source link

Car locking isnt working. #8

Closed weespin closed 8 years ago

weespin commented 8 years ago
LPX >> Exception in AddLockedStatus: MySql.Data.MySqlClient.MySqlException: Incorrect integer value: 'True' for column 'Locked' at row 1
  at MySql.Data.MySqlClient.MySqlStream.ReadPacket () [0x00000] in <filename unknown>:0
  at MySql.Data.MySqlClient.NativeDriver.GetResult (System.Int32& affectedRow, System.Int64& insertedId) [0x00000] in <filename unknown>:0

Im my SQL i see Locked = 1

weespin commented 8 years ago

Plugin cant set Locked as VARCHAR on loading.

lightphoenix2 commented 8 years ago

There is some coding problem. I have change the coding since. It is not setting it as varchar because it is in tinyint. The only way is to do this in mySQL. ALTER TABLE unturned.car Drop column Locked; alter table unturned.car add column Locked varchar(5) after givenKeys;