addEvent("get",true)
addEventHandler("get", root,
function()
local accName = getAccountName(getPlayerAccount(client))
if isObjectInACLGroup("user."..accName, aclGetGroup(get("group"))) then
triggerClientEvent(client, "gui", client)
end
end)
تجيب كل الحسابات الي بالسيرفر:
getAccounts
تجيب اللفل المحفوظ بكل الحسابات و تحطه في جدول
getAccountData
تستخدم الفنكشن ذا عشان ترتب اللفلات الي في الجدول من الكبير إلى الصغير
table.sort
بعد ترتيب الجدول، اول قيمة بالجدول بتكون اعلى لفل
سطر 20 مو حاط اسم مفتاح الداتا
و مو حاط المنت اللاعب الي تبي تجيب سيرياله و مو حاط اسم مفتاح الداتا set بدل get سطر 29 جايب العيد مستخدم
و يفترض انك تحط المتغيرات لوكل في سطر 18 و 27
ينمسح لما تسوي ريستارت للسيرفر root و عموماً ترا الألمنت داتا على الـ
@spoty, did you read what JR10 said?
You should use dbExec if there was no result returned, like creating a table, inserting rows or updating rows.
Use dbQuery when there will be a result, e.g SELECT.
For dbQuery you must use dbPoll if you want the result or dbFree if you don't want the result, not using any of those two functions will show you the warning like the one you getting now.