z24d Posted August 9, 2015 Share Posted August 9, 2015 السلام عليكم وش المشكلة هنا ؟ function Master () ArmyTeam = createTeam ( "Army", 162, 93, 14 ) end addEventHandler("onResourceStart", resourceRoot, Master) function Playerteam() setPlayerTeam(source, ArmyTeam) setTeamFriendlyFire ( ArmyTeam, false ) spawnPlayer (source, 213.68238830566,1857.8231201172,13.140625,0, 287, 0, 0) end addEventHandler("onPlayerLogin",getRootElement(),Playerteam) function Care() spawnPlayer (source, 213.68238830566,1857.8231201172,13.140625,0, 287, 0, 0) end addEventHandler("onPlayerWasted",getRootElement(),Care) Link to comment
z24d Posted August 9, 2015 Author Share Posted August 9, 2015 طالعلي بالديبوق ERROR: Loading script failed: Teams/server.lua:2 unexpected symbol near ' Link to comment
αвυ-wαleed Posted August 9, 2015 Share Posted August 9, 2015 ArmyTeam = createTeam ( "Army", 162, 93, 14 ) function Playerteam() setPlayerTeam(source, ArmyTeam) setTeamFriendlyFire ( ArmyTeam, false ) spawnPlayer (source, 213.68238830566,1857.8231201172,13.140625,0, 287, 0, 0) end addEventHandler("onPlayerLogin",getRootElement(),Playerteam) function Care() spawnPlayer (source, 213.68238830566,1857.8231201172,13.140625,0, 287, 0, 0) end addEventHandler("onPlayerWasted",getRootElement(),Care) Link to comment
#DRAGON!FIRE Posted August 9, 2015 Share Posted August 9, 2015 الكود حقكـ سليم وما اشوف في اي اخطاء الا لو ما انتبهت انا الخطا هذا طلع بعد ما عدلت ع كودك او قبل ؟ اطرح اخر الاكواد يعني قبل لا تعدل عليها . Link to comment
Simple. Posted August 10, 2015 Share Posted August 10, 2015 ArmyTeam = createTeam ( "Army", 162, 93, 14 ) setTeamFriendlyFire ( ArmyTeam, false ) addEventHandler("onPlayerLogin",getRootElement(), function () setPlayerTeam(source, ArmyTeam) spawnPlayer (source, 213.68238830566,1857.8231201172,13.140625,0, 287, 0, 0) end ) addEventHandler("onPlayerWasted",getRootElement(), function () spawnPlayer (source, 213.68238830566,1857.8231201172,13.140625,0, 287, 0, 0) end ) 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