nxFairlywell Posted January 31, 2016 Posted January 31, 2016 هذه الوظيفة استخدمها في جميع السكربتات اللي اسويها بس ماتقدر تستخدمها الا اذا كنت مسوي اس كيو ال وحافظ السريال عليه هي تتحقق إذا كان السريال قد حفظت عليه بيانات او لا تستخدمها في التحقق وقيمتها خاطئة او صحيحه serial = getPlayerSerial(element player) if isSerialRegistered(serial, اسم الكولمن حق السريالات , اسم الجدول اللي تحفظ عليه بيانات الحساب لما يسجل اللاعب) -- CODE end serial = سريال اللاعب يوم يسجل sql_table = اسم الجدول حق الاس كيو ال serial_colum = اسم الكولمن حق السريالات function isSerialRegistered( serial, sql_table, serial_column ) if serial and serial == "string" and sql_table and serial_column and sql_table == 'string' and serial_column == 'string' then local sql = executeSQLQuery("SELECT * FROM "..sql_table.." WHERE "..serial_column.."=?", serial) if ( type ( sql ) == "table" and #sql == 0 or not sql ) then return false else return true end else return outputDebugString("You have wrong arguments please review syntax", _, 255, 0, 0) end end Discord ID : nxFairlywell#6895
#StrOnG_,) Posted January 31, 2016 Posted January 31, 2016 هذه الوظيفة استخدمها في جميع السكربتات اللي اسويهابس ماتقدر تستخدمها الا اذا كنت مسوي اس كيو ال وحافظ السريال عليه هي تتحقق إذا كان السريال قد حفظت عليه بيانات او لا تستخدمها في التحقق وقيمتها خاطئة او صحيحه serial = getPlayerSerial(element player) if isSerialRegistered(serial, اسم الكولمن حق السريالات , اسم الجدول اللي تحفظ عليه بيانات الحساب لما يسجل اللاعب) -- CODE end serial = سريال اللاعب يوم يسجل sql_table = اسم الجدول حق الاس كيو ال serial_colum = اسم الكولمن حق السريالات function isSerialRegistered( serial, sql_table, serial_column ) if serial and serial == "string" and sql_table and serial_column and sql_table == 'string' and serial_column == 'string' then local sql = executeSQLQuery("SELECT * FROM "..sql_table.." WHERE "..serial_column.."=?", serial) if ( type ( sql ) == "table" and #sql == 0 or not sql ) then return false else return true end else return outputDebugString("You have wrong arguments please review syntax", _, 255, 0, 0) end end وظيفة رائعة , شكراً Quote "I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them, I'm just playing with ya. I don't care where the top is, Leave me at the bottom, let me work for it." _________________________________________________________________________________________________________________ ACM W_#9661
nxFairlywell Posted January 31, 2016 Posted January 31, 2016 هذه الوظيفة استخدمها في جميع السكربتات اللي اسويهابس ماتقدر تستخدمها الا اذا كنت مسوي اس كيو ال وحافظ السريال عليه هي تتحقق إذا كان السريال قد حفظت عليه بيانات او لا تستخدمها في التحقق وقيمتها خاطئة او صحيحه serial = getPlayerSerial(element player) if isSerialRegistered(serial, اسم الكولمن حق السريالات , اسم الجدول اللي تحفظ عليه بيانات الحساب لما يسجل اللاعب) -- CODE end serial = سريال اللاعب يوم يسجل sql_table = اسم الجدول حق الاس كيو ال serial_colum = اسم الكولمن حق السريالات function isSerialRegistered( serial, sql_table, serial_column ) if serial and serial == "string" and sql_table and serial_column and sql_table == 'string' and serial_column == 'string' then local sql = executeSQLQuery("SELECT * FROM "..sql_table.." WHERE "..serial_column.."=?", serial) if ( type ( sql ) == "table" and #sql == 0 or not sql ) then return false else return true end else return outputDebugString("You have wrong arguments please review syntax", _, 255, 0, 0) end end وظيفة رائعة , شكراً العفو حبيبي Discord ID : nxFairlywell#6895
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