Jump to content

تصحيح كود


Recommended Posts

Posted

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

شباب انا عملت كود بس لاعب يروح الماركر لي حطيته يعطيه سيريال ذا الكود شوفولي اذا صح

function checkMyS( thePlayer, command ) 
local marker = createMarker (x, y, z, "cylinder", 2, 255, 0, 0) 
    local theSerial = getPlayerSerial( thePlayer ) 
    if theSerial then 
        outputChatBox( "سيريالك" .. theSerial, thePlayer ) 
    else 
     outputChatBox( "اسف انت لا تملك سيريال =(", thePlayer )    
    end 
end 
addCommandHandler( "myserial", checkMyS ) 
  

~ Soon - ~ قريبا

n-560x95_B6BF07_FFFFFF_0E6B20_000000.png

Posted

1- في اف 8 يعطية سيريلة myserial انتا عاملة لما يكتب

2- انتا عامل ماركر و ما له اي فايدة

3- انتا متحقق من السيريل و ما اعتقد ما في لاعب لا يوجد له سيريل

Posted

تفضل

  
--لما يلمس ماركر  
local Marker = createMarker(0, 0, 3, 'cylinder', 2.0, 255, 255, 255, 255) 
  
addEventHandler( "onMarkerHit", Marker, 
function( player )  
    if getElementType( player ) == "player" then 
        outputChatBox(" Your Serial is : "..getPlayerSerial( player ), player, 0, 255, 0 ) 
    end 
end 
) 
  
--- من اف 8 
addCommandHandler( "myserial", 
function( player ) 
outputChatBox(" Your Serial is : "..getPlayerSerial( player ), player, 0, 255, 0 ) 
end) 
  

Posted
شكرا لك المهم اني عملت كود بس الكود سهل ض1

انت ما سويت ولا شي

مجرد اخذت مثال الويكي و حطيت فيه هذا

local marker = createMarker (x, y, z, "cylinder", 2, 255, 0, 0) 

ولا انت مو داري وش الهرجه :lol:

CiTLh.png
Posted

ههههه ضحكتني ولله مكاني ما رتبت الاكواد وما حذفت الاكواد

تابل بس انت تعرف البرمجه بس مو 100% طيب

~ Soon - ~ قريبا

n-560x95_B6BF07_FFFFFF_0E6B20_000000.png

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