Hi, can anyone help me?
Attachments
-
20200314_152301.jpg669.2 KB · Views: 30 · VirusTotal
Out of range value for column `onlinetime` at row 1
local MultiClients = 3
function onLogin(player)
local mc = 0
for_, veriticar in ipairs(Game.getPlayers()) do
if player:getIp() == verificar:getIp() then
mc = mc +1
if mc > MultiClients then return false end
end
end
return true
end
ALTER TABLE `players` ADD `onlinetime` int(11) NOT NULL DEFAULT '0',
I am not sure but try import to your database this code.
SQL:ALTER TABLE `players` ADD `onlinetime` int(11) NOT NULL DEFAULT '0',
ALTER TABLE `players` MODIFY `onlinetime` BIGINT NOT NULL;
Type: VARCHAR, Lenght: 45 and check NULL