orcun99 Posted September 6, 2017 Share Posted September 6, 2017 function echoMsg() exports.WSScommands:sendMessage("1den fazla hesabı olan arkadaşlar banlanacaktır!", 255, 255, 0,root) end addEventHandler("onResourceStart", resourceRoot, function() executeSQLQuery("CREATE TABLE IF NOT EXISTS `multiacc`(ip TEXT, serial TEXT, id TEXT)") setTimer(echoMsg, 120000, 0) end) addEventHandler ( 'onPlayerLogin', getRootElement ( ), function(source) local serial = getPlayerSerial(source) local account = getPlayerAccount(source) local id = getAccountName(account) local ip = getPlayerIP(source) executeSQLQuery("INSERT INTO `multiacc` VALUES(?,?,?)", ip, serial, id) end ) erorrs: BAD ARGUMENT @ 'GETPLAYERSERİAL ' [Expected player at argument 1,got account] BAD ARGUMENT @ 'GETPLAYERACCOUNT ' [Expected element at argument 1,got bolean] BAD ARGUMENT @ 'GETACCOUNTNAME' [Expected account at argument 1,got account] BAD ARGUMENT @ 'GETPLAYERIP ' [Expected element at argument 1,got account] Link to comment
Dimos7 Posted September 6, 2017 Share Posted September 6, 2017 function echoMsg() exports.WSScommands:sendMessage("1den fazla hesabı olan arkadaşlar banlanacaktır!", 255, 255, 0,root) end addEventHandler("onResourceStart", resourceRoot, function() executeSQLQuery("CREATE TABLE IF NOT EXISTS `multiacc`(ip TEXT, serial TEXT, id TEXT)") setTimer(echoMsg, 120000, 0) end) addEventHandler ("onPlayerLogin", root, function() local serial = getPlayerSerial(source) local account = getPlayerAccount(source) local id = getAccountName(account) local ip = getPlayerIP(source) executeSQLQuery("INSERT INTO `multiacc` VALUES(?,?,?)", ip, serial, id) end ) 1 Link to comment
orcun99 Posted September 6, 2017 Author Share Posted September 6, 2017 3 minutes ago, Dimos7 said: function echoMsg() exports.WSScommands:sendMessage("1den fazla hesabı olan arkadaşlar banlanacaktır!", 255, 255, 0,root) end addEventHandler("onResourceStart", resourceRoot, function() executeSQLQuery("CREATE TABLE IF NOT EXISTS `multiacc`(ip TEXT, serial TEXT, id TEXT)") setTimer(echoMsg, 120000, 0) end) addEventHandler ("onPlayerLogin", root, function() local serial = getPlayerSerial(source) local account = getPlayerAccount(source) local id = getAccountName(account) local ip = getPlayerIP(source) executeSQLQuery("INSERT INTO `multiacc` VALUES(?,?,?)", ip, serial, id) end ) works thank uuu Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now