scriptin içerdiği sql kodu bu
local encryptionRule = tostring(math.random(0,9))..tostring(math.random(0,9))..tostring(math.random(0,9))..tostring(math.random(0,9))..tostring(math.random(0,9))..tostring(math.random(0,9))..tostring(math.random(0,9))..tostring(math.random(0,9))..tostring(math.random(0,9))..tostring(math.random(0,9))
local encryptedPW = string.lower(md5(string.lower(md5(password))..encryptionRule))
local ipAddress = getPlayerIP(client)
preparedQuery3 = "INSERT INTO `accounts` SET `username`='"..toSQL(username).."', `password`='"..toSQL(encryptedPW).."', `email`='"..toSQL(email).."', `registerdate`=NOW(), `ip`='"..toSQL(ipAddress).."', `salt`='"..toSQL(encryptionRule).."', `mtaserial`='"..mtaSerial.."', `activated`='0' "
-- preparedQuery4 = "INSERT INTO `forum_members` SET `member_name`='"..toSQL(username).."', `real_name`='"..toSQL(username).."', `passwd`='"..toSQL(encryptedPW).."', `email_address`='"..toSQL(email).."', `date_registered`='"..toSQL(getTimestamp()).."', `member_ip`='"..toSQL(ipAddress).."', `password_salt`='"..toSQL(encryptionRule).."'"
local id = mysql:query_insert_free(preparedQuery3)
-- local id2 = mysql:query_insert_free(preparedQuery4)
if id and tonumber(id) then
--if id2 and tonumber(id2) then
--triggerClientEvent(client,"set_warning_text",client,"Kayıt Ol","Forum hesabı oluşturulamadı.")
--return false
--end
--triggerClientEvent(client,"accounts:register:complete",client, username, password)
triggerClientEvent(client,"backToLogin",client)
showBox(client,"Hesabını başarıyla oluşturdun. Şimdi Girişyap.",1)
return true
else
--triggerClientEvent(client,"set_warning_text",client,"Kayıt Ol","Oyun hesabı oluşturulamadı.")
showBox(client,"Oyun hesabı oluşturulamadı.",1)
return false
end