• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved error in tfs

JonatasLucas

New Member
Joined
Jun 12, 2013
Messages
116
Reaction score
3
hello people I am with this small error to reset my character and use tfs 0.4 site

resesy.png
 
Code:
ALTER TABLE `killers` ADD `war` int(11) NOT NULL DEFAULT 0;

And for the executeQuery, add this in 100-compat.lua
Code:
db.executeQuery = db.query
 
What do you mean? You can add this line in data/lib/100-compat.lua
Code:
db.executeQuery = db.query
Or change db.executeQuery to db.query in record.lua.
 
What is the problem exactly? It saves the player if it has save to 1 in the database in the table players.
 
Code:
ALTER TABLE `players` ADD `cast` TINYINT NOT NULL DEFAULT '0',
ADD `castViewers` INT(11) NOT NULL DEFAULT '0',
ADD `castDescription` VARCHAR(255) NOT NULL
 
error #1060 - Duplicate column name 'cast'

of this error when running just above error #1060 - Duplicate column name 'cast'
 
Last edited by a moderator:
Thanks! thanks for the help I added a query and it worked

ALTER TABLE `players` ADD `castDescription` INT(11) NOT NULL DEFAULT '0'
 
castDescription should be VARCHAR(255) instead of INT.
You can drop the column
Code:
ALTER TABLE `players` DROP `castDescription`
Then readd it again
Code:
ALTER TABLE `players` ADD `castDescription` VARCHAR(255) NOT NULL
 
Back
Top