WriterUrDie Posted October 14, 2015 Share Posted October 14, 2015 السلام عليكم ورحمة الله و بركاته شباب عندي مشكلة ماعرف حلها Serial = {} function oka() if not getElementData (localPlayer,"serial") then table.insert(Serial,[ 'getPlayerSerial()' ]) setElementData (localPlayer,"serial",true) elseif ( getElementData (localPlayer,"serial") ) then return end end addEventHandler ("onClientRender",root,oka) في كودي هاد كل جزء من الثانية ابي يدخل سيريال الشخص مرة واحدة بداتا ( في جدول لو سيرياله انحط و اخذ الداتا مايعمل شئ بس المشكلة هنا انا ماعرف كيف الصراحة استخدم كود table.insert لأني جديد شويتين في هاي الاشياء ابي يدخل سيريال الاعب بالطريقة ذي Serial = { [ '69F17AC52924F46376630F7F5DB1DAF3' ] = true, } و شكرا . Link to comment
` Allawi Posted October 14, 2015 Share Posted October 14, 2015 مثال على إدخال البيانات للجدول بالطريقه اللي انت تبيها example = {} addCommandHandler("example", function(player) if example[getPlayerSerial(player)] and example[getPlayerSerial(player)] == true then outputChatBox("example: true",player,255,255,0) else example[getPlayerSerial(player)] = true end end ) Link to comment
WriterUrDie Posted October 14, 2015 Author Share Posted October 14, 2015 ` Allawi said: مثال على إدخال البيانات للجدول بالطريقه اللي انت تبيها example = {} addCommandHandler("example", function(player) if example[getPlayerSerial(player)] and example[getPlayerSerial(player)] == true then outputChatBox("example: true",player,255,255,0) else example[getPlayerSerial(player)] = true end end ) ماشاء الله عليك شكرا علي المعلومة تمت الافادة Link to comment
` Allawi Posted October 14, 2015 Share Posted October 14, 2015 WriterUrDie said: ماشاء الله عليكشكرا علي المعلومة تمت الافادة اهلا وسهلا 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