Jump to content

طلب مود


YaSoF

Recommended Posts

Posted

هذه الوظيفة استخدمها في جميع السكربتات اللي اسويها

بس ماتقدر تستخدمها الا اذا كنت مسوي اس كيو ال وحافظ السريال عليه

هي تتحقق إذا كان السريال قد حفظت عليه بيانات او لا

تستخدمها في التحقق وقيمتها خاطئة او صحيحه

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

 

Posted
هذه الوظيفة استخدمها في جميع السكربتات اللي اسويها

بس ماتقدر تستخدمها الا اذا كنت مسوي اس كيو ال وحافظ السريال عليه

هي تتحقق إذا كان السريال قد حفظت عليه بيانات او لا

تستخدمها في التحقق وقيمتها خاطئة او صحيحه

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

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted
هذه الوظيفة استخدمها في جميع السكربتات اللي اسويها

بس ماتقدر تستخدمها الا اذا كنت مسوي اس كيو ال وحافظ السريال عليه

هي تتحقق إذا كان السريال قد حفظت عليه بيانات او لا

تستخدمها في التحقق وقيمتها خاطئة او صحيحه

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

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...