[02:39:31] Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 [02:39:31] ErrorID: 1064
UPDATE `properties` SET X = `%f`, Y = `%f`, Z = `%f`, eX = `%f`, eY = `%f`, eZ = `%f`, Owner = %s, Description = %s, \ Cost = %d, Hel = %d, Arm = %d, Int = %d, Lock = %d, Owned = %d, Rooms = %d, Rent = %d, Rentabil = %d, \ Takings = %d, Date = %d, Level = %d, World = %d, OutWorld = %d, OutInt = %d, OTaken = %d, Clothes = %d, \ Clothes2 = %d, Clothes3 = %d, Safe = %d, Radio = %d, Station = %d, TV = %d WHERE ID = %d
UPDATE `properties` SET `X` = '%f', `Y` = '%f', `Z` = '%f', `eX` = '%f', `eY` = '%f', `eZ` = '%f', `Owner` = '%s', `Description` = '%s', \ `Cost` = '%d', `Hel` = '%d', `Arm` = '%d', `Int` = '%d', `Lock` = '%d', `Owned` = '%d', `Rooms` = '%d', `Rent` = '%d', `Rentabil` = '%d', \ `Takings` = '%d', `Date` = '%d', `Level` = '%d', `World` = '%d', `OutWorld` = '%d', `OutInt` = '%d', `OTaken` = '%d', `Clothes` = '%d', \ `Clothes2` = '%d', `Clothes3` = '%d', `Safe` = '%d', `Radio` = '%d', `Station` = '%d' AND `TV` = '%d' WHERE `ID` = '%d'
Код:
UPDATE `properties` SET `X` = '%f', `Y` = '%f', `Z` = '%f', `eX` = '%f', `eY` = '%f', `eZ` = '%f', `Owner` = '%s', `Description` = '%s', \ `Cost` = '%d', `Hel` = '%d', `Arm` = '%d', `Int` = '%d', `Lock` = '%d', `Owned` = '%d', `Rooms` = '%d', `Rent` = '%d', `Rentabil` = '%d', \ `Takings` = '%d', `Date` = '%d', `Level` = '%d', `World` = '%d', `OutWorld` = '%d', `OutInt` = '%d', `OTaken` = '%d', `Clothes` = '%d', \ `Clothes2` = '%d', `Clothes3` = '%d', `Safe` = '%d', `Radio` = '%d', `Station` = '%d' AND `TV` = '%d' WHERE `ID` = '%d' |
Y = `%f`
`Y` = %f
// An example about '':
"UPDATE `something` SET integer = %d, float = %f, string = '%s' WHERE ID = 0"
Look into the mysql log and show us the final query.
Also, I recommend you to use MySQL R8 ****** Code. |
It's because the lenght of the string is not large enough to store it and it cuts it, so it will give syntax error.
By the way pawn Код:
|