Jump to content

مساعدة لاهنتم


Recommended Posts

السلام عليكم ورحمة الله و بركاته

شباب عندي مشكلة ماعرف حلها

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

مثال على إدخال البيانات للجدول بالطريقه اللي انت تبيها

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
مثال على إدخال البيانات للجدول بالطريقه اللي انت تبيها
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 
) 

ماشاء الله عليك

شكرا علي المعلومة :mrgreen:

تمت الافادة

Link to comment

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...