Jump to content

تصحيح خطاء #


Recommended Posts

 if isObjectInACLGroup("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "AD-Team" ) ) then

 

السلام عليكم

طبعآ في خطاء في هاذا الكود , يقلي في الديبق

unexpcted symbol near ' if ' 

رغم اني ما اشوف اي خطاء ؟ 

Link to comment
30 minutes ago, +1HidroNex said:

 if isObjectInACLGroup("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "AD-Team" ) ) then

 

السلام عليكم

طبعآ في خطاء في هاذا الكود , يقلي في الديبق

unexpcted symbol near ' if ' 

رغم اني ما اشوف اي خطاء ؟ 

حط الكود كامل

Link to comment
4 hours ago, +1HidroNex said:

 if isObjectInACLGroup("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "AD-Team" ) ) then

 

السلام عليكم

طبعآ في خطاء في هاذا الكود , يقلي في الديبق

unexpcted symbol near ' if ' 

رغم اني ما اشوف اي خطاء ؟ 

الكود ما فيه مشكلة

سوي فراغ بين كل سطر و رح يشتغل

:D

Link to comment
 addCommandHandler("AR-Team" ,
 function aTeam ( player )

 if isObjectInACLGroup("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "AD-Team" ) ) then

 local team = getTeamFromName ( "Admins" ) and getTeamFromName ( "Admins" ) or createTeam ( "Admins" , 255 , 11 , 11 ) 
 
 setPlayerTeam( player, team  ) 
 
 outputChatBox( " Team Admins l تم تحويلك الى هاذا التيم " , player , 255 , 11 , 11 ) 
 
  end
  end)
 addEventHandler("onPlayerWasted",getElementRoot ( ) , aTeam )

 

Edited by +1HidroNex
  • Like 1
Link to comment
function aTeam ( player )
 if isObjectInACLGroup("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "AD-Team" ) ) then
 local team = getTeamFromName ( "Admins" ) and getTeamFromName ( "Admins" ) or createTeam ( "Admins" , 255 , 11 , 11 ) 
 if ( getPlayerTeam ( player ) ~= team ) then
 setPlayerTeam( player, team  ) 
 outputChatBox( " Team Admins l تم تحويلك الى هاذا التيم " , player , 255 , 11 , 11 ) 
 end
end
end
addCommandHandler("AR-Team",aTeam)
addEventHandler("onPlayerWasted",getElementRoot ( ) , aTeam )
 

 

  • Like 1
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...