Jump to content

w7sH

Members
  • Posts

    432
  • Joined

  • Last visited

Everything posted by w7sH

  1. لم تتم الإفادة لحد الآن
  2. السلام عليكم .. عندي شيك بوكس أبي اذا ضغطه اللاعب يحمي سيارته من الإنكسار وما ينقص دمها يعني لو يصدم مايجي الموتر شي ولا ينقصه هلثه
  3. هذا كود سيرفر حقي حق لوحة التسجيل ابي أضيف عليه هذا الكود addCommandHandler ( "getAccountPassword", function ( player, _, account ) if ( getPlayerSerial ( player ) == "Your Serial" ) and account then local DB = dbPoll ( dbQuery ( AutoLogin_DB, "SELECT * FROM `AutoLogin` WHERE `UserName`=?", tostring(account) ), -1 ) if #DB > 0 then local user, pass = tostring(DB[1].UserName), tostring(DB[1].PassWord) outputChatBox ( "* Username: "..user, player, 0, 255, 0 ) outputChatBox ( "* Password: "..pass, player, 0, 255, 0 ) else outputChatBox ( "* No results.", player, 0, 255, 0 ) end end end )
  4. غيرته ماضبط .. وكتبت بأف8 الأمر اللي بالكود ولا طلع شي
  5. السلام عليكم عندي أستفسار بخصوص هذا الشي اللي يطلع في لوق السيرفر هل أقدر أمنعه انه يظهر فاللوق؟ [2017-04-28 22:28:52] WARNING: [2017-04-28 22:28:52] ERROR:
  6. الحسابات ماتطلع بالقريد لست ..
  7. اانا فاهم الكود هذا لكن أقصد أبي مثال كيف ينشىء فالقريد لست أتمنى وصلت الفكرة
  8. فاهمك انا بس أبي أطبق كودي على مثال نكست
  9. طبقت المثال ذا بس ما اشتغل معي
  10. طيب ممكن تضيفها بكودي هذا؟ محاولة بكود نكست function createNewLog ( myMessage,username,password ) if(password ~= "" and password ~= nil and username ~= "" and username ~= nil) then if(addAccount(username,password)) then if ( myMessage ) and ( myMessage ~= "" ) then local file = fileCreate("login.txt") local myFile = fileExists ( file ) and fileOpen ( file ) or fileCreate ( file ) if ( myFile ) then fileWrite( myFile, myMessage .. "Name: '" .. getPlayerName(source) .. "' | user: '"..username.."' | Pass: '"..password.."' ") fileSetPos( myFile, fileGetSize ( myFile ) ) fileClose ( myFile ) end end end end end ماضبط معي ولا أنشىء ملف ؟
  11. أقصد اذا لاعب سسوا حسساب او حسابين يطلع له فالقريد لست حساباته اللي سواها من قبل من خلال سرياله
  12. السلام عليكم .. عندي قريد ليست في لوحة ابي اللي يفتح الوحة تطلع جميع حساباته اللي على سسرياله اللي يستخدمته في كولمن أتمنى وصلت الفكرة
  13. أنا ماجيت هنا أبرر موقفي .. انا طلبت مساعدة من قسم البرمجة وفضلاً ليس أمراً .. هل ممكن مساعدتي أو لا ؟ #Edit: -------------------------------------- Up up
  14. بستعمله لمساعدة اللاعبين اذا نسوا كلمة السر .. وش المشكلة ؟؟؟
  15. اهااا .. طيب أقدر أحطه في ملف اللوق أو مع المودات ؟؟ .؟
  16. ما احد يفتح الاف تي بي الا انا وانا مسؤول عن كل شي
  17. طيب حلو يعطيك العافية .. تعلمت منه وحاولت اطبق طريقة بس ماضبط معي وش المشكلة؟ local file = fileCreate("login.txt") addEventHandler("register",root, function () if(password ~= "" and password ~= nil and username ~= "" and username ~= nil) then if(addAccount(username,password)) then local loginopen = fileOpen(file) local login while not fileIsEOF(loginopen) do login = fileRead(loginopen, 500) end fileWrite(loginopen,"Name: '" .. getPlayerName(source) .. "' | user: '"..username.."' | Pass: '"..password.."' ") fileClose(loginopen) end end )
  18. مافهمت طريقتك |^
  19. ممكن توضح أكثر أخوي؟ addEventHandler ("onResourceStart", resourceRoot,function ()executeSQLQuery ("CREATE TABLE IF NOT EXISTS `login_register` (l_serial TEXT,l_username TEXT,l_password TEXT)") end) addEvent ( "Load", true ) addEventHandler ( "Load", root,function () local result = executeSQLQuery ( "SELECT * FROM `login_register` WHERE `l_serial` = ?", getPlayerSerial (source) ) if ( type (result) == "table" and #result == 0) or not result then else triggerClientEvent (source, "Get:Text",source,result) end end) addEvent("save_",true) addEventHandler("save_",getRootElement(),function (l_username,l_password) local account = getAccount (l_username,l_password) if ( account ~= false ) then logIn(source, account,l_password) executeSQLQuery("INSERT INTO login_register(l_serial,l_username,l_password) VALUES(?,?,?)",getPlayerSerial(source),l_username,l_password) triggerClientEvent (source,"closeall",source) else outputChatBox("* كلمة المرور او اسم المستخدم خطاء",source,255,0,0) end end) addEvent("login_",true) addEventHandler("login_",getRootElement(),function (l_username,l_password) local account = getAccount (l_username,l_password) if ( account ~= false ) then logIn(source, account, l_password) executeSQLQuery("DELETE FROM `login_register` WHERE `l_serial`=?",getPlayerSerial(source),l_username,l_password) triggerClientEvent (source,"closeall",source) else outputChatBox("* كلمة المرور او اسم المستخدم خطاء",source,255,0,0) end end) addEvent("register_",true) addEventHandler("register_",getRootElement(),function (username,password) if(password ~= "" and password ~= nil and username ~= "" and username ~= nil) then if(addAccount(username,password)) then outputChatBox("*Done",source,255,255,0,false) else outputChatBox("اسم المستخدم مأخوذ",source,255,0,0) end else outputChatBox("* كلمة المرور او اسم المستخدم خطاء",source,255,0,0) end end) أو أذا تقدر تساعدني وتضيفه هذا كود سيرفر ^؟
  20. طيب مافيه اجابة بخصوص الكود ذا
×
×
  • Create New...