Jump to content

تمت الافادة | تصحيح كود | Thx To Jafar


Recommended Posts

السلام عليكم سويت كود اذا فتح البوابة لـ قروب معين

ومايظهر الاوبجكت

gate = createObject ( 957, 2494.5, -1671.1999511719, 14, 90, 0, 0 ) 
function Gate() 
moveObject ( gate, 10000, 2494.5, -1671.1999511719, 17.299999237061 ) 
 bindKey("tab", "down",Gate) 
      if isObjectInACLGroup ( "user." .. getAccountName, aclGetGroup ( "admin" ) then 
end 
end 
  

وش الغلط وللعلم دي بوق سكربت مدري شسمه

WARNING: Loading script failed: xgatemove\server.lua:5: ')' expected near 'then'

Edited by Guest
Link to comment

gate = createObject ( 957, 2494.5, -1671.1999511719, 14, 90, 0, 0 ) -- ؟.. Z خطأ فين الـ 
function Gate() 
      if isObjectInACLGroup ( "user." .. getAccountName, aclGetGroup ( "Admin" ) then 
      moveObject ( gate, 10000, 2494.5, -1671.1999511719, 17.299999237061 ) 
end 
end 
bindKey("tab", "down",Gate) 
Edited by Guest
Link to comment
gate = createObject ( 957, 2494.5, -1671.1999511719, 14, 90, 0, 0 ) -- ؟.. Z خطأ فين الـ 
function Gate() 
      if isObjectInACLGroup ( "user." .. getAccountName, aclGetGroup ( "Admin" ) then 
      moveObject ( gate, 10000, 2494.5, -1671.1999511719, 17.299999237061 ) 
end 
end 
bindKey("tab", "down",Gate) 

SCRIPT ERROR: xgatemove\server.lua:3: ')' expected near 'then'

+ z هو 14

الكود ماضبط

Link to comment
gate = createObject ( 957, 2494.5, -1671.1999511719, 14, 90, 0, 0 ) -- ؟.. Z خطأ فين الـ 
function Gate() 
      if isObjectInACLGroup ( "user." .. getAccountName, aclGetGroup ( "Admin" ) then 
      moveObject ( gate, 10000, 2494.5, -1671.1999511719, 17.299999237061 ) 
end 
end 
bindKey("tab", "down",Gate) 

o.O

Link to comment
gate = createObject ( 957, 2494.5, -1671.1999511719, 14, 90, 0, 0 ) -- ؟.. Z خطأ فين الـ 
function Gate() 
      if isObjectInACLGroup ( "user." .. getAccountName, aclGetGroup ( "Admin" ) then 
      moveObject ( gate, 10000, 2494.5, -1671.1999511719, 17.299999237061 ) 
end 
end 
bindKey("tab", "down",Gate) 

SCRIPT ERROR: xgatemove\server.lua:3: ')' expected near 'then'

+ z هو 14

الكود ماضبط

:?سيرفر في كلنت..؟ function وبعدين انت حاط

Link to comment
gate = createObject ( 957, 2494.5, -1671.1999511719, 14, 90, 0, 0 ) -- ؟.. Z خطأ فين الـ 
function Gate() 
      if isObjectInACLGroup ( "user." .. getAccountName, aclGetGroup ( "Admin" ) then 
      moveObject ( gate, 10000, 2494.5, -1671.1999511719, 17.299999237061 ) 
end 
end 
bindKey("tab", "down",Gate) 

SCRIPT ERROR: xgatemove\server.lua:3: ')' expected near 'then'

+ z هو 14

الكود ماضبط

:?سيرفر في كلنت..؟ function وبعدين انت حاط

No ..

Link to comment
gate = createObject ( 957, 2494.5, -1671.1999511719, 14, 90, 0, 0 )  
  
function Gate(player) 
     local accName = getAccountName ( getPlayerAccount ( player ) )  
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
      moveObject ( gate, 10000, 2494.5, -1671.1999511719, 17.299999237061 ) 
end 
end 
  
for _, player in ipairs ( getElementsByType ( 'player' ) ) do 
bindKey ( player, 'tab', 'down', Gate ) 
end 
          
addEventHandler( 'onPlayerJoin', root, 
function ( ) 
bindKey ( source, 'tab', 'down', Gate ) 
end 
) 
     

Link to comment
gate = createObject ( 957, 2494.5, -1671.1999511719, 14, 90, 0, 0 )  
  
function Gate(player) 
     local accName = getAccountName ( getPlayerAccount ( player ) )  
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
      moveObject ( gate, 10000, 2494.5, -1671.1999511719, 17.299999237061 ) 
end 
end 
  
for _, player in ipairs ( getElementsByType ( 'player' ) ) do 
bindKey ( player, 'tab', 'down', Gate ) 
end 
          
addEventHandler( 'onPlayerJoin', root, 
function ( ) 
bindKey ( source, 'tab', 'down', Gate ) 
end 
) 
     

مشكور ضبط

الله يعطيك العافيةة

Link to comment
gate = createObject ( 957, 2494.5, -1671.1999511719, 14, 90, 0, 0 )  
  
function Gate(player) 
     local accName = getAccountName ( getPlayerAccount ( player ) )  
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
      moveObject ( gate, 10000, 2494.5, -1671.1999511719, 17.299999237061 ) 
end 
end 
  
for _, player in ipairs ( getElementsByType ( 'player' ) ) do 
bindKey ( player, 'tab', 'down', Gate ) 
end 
          
addEventHandler( 'onPlayerJoin', root, 
function ( ) 
bindKey ( source, 'tab', 'down', Gate ) 
end 
) 
     

مشكور ضبط

الله يعطيك العافيةة

الله يعافيك ,,

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