Oussama_Dz Posted July 12, 2017 Share Posted July 12, 2017 السلام عليكم ورحمة الله تعالى وبراكته انشاء الله تكونون بافضل حال اريد تصحيح الكود ---------------------------الكود سيرفر ----------------------------------- addEvent("OnTaxiJob",true) addEventHandler("OnTaxiJob",root, function (skin) if ( getElementData( source, "Job" ) == "TaxiJob" ) then return end setElementModel(source,tonumber(skin)) setElementData (source,"Job","TaxiJob" ) setPlayerTeam(source,"Unemployed") --- هنا الخطأ triggerClientEvent(source,"CreateTaxiMarkers",source) if getElementData(source,"Language") then outButDxChat("#AE00FF(TaxiJob) : #00FF00 لقد تم قبولك في وظيفة سائق التاكسي",source,0,255,255,true) else outButDxChat("#AE00FF(TaxiJob) : #00FF00You Join The Taxi Job ! ",source,0,255,255,true) end end) شكرا مسبقا Link to comment
Oussama_Dz Posted July 12, 2017 Author Share Posted July 12, 2017 (edited) 12 hours ago, #,+( _xiRoc[K]; > said: getTeamFromName addEvent("OnTaxiJob",true) addEventHandler("OnTaxiJob",root, function (skin) if ( getElementData( source, "Job" ) == "TaxiJob" ) then return end setElementModel(source,tonumber(skin)) setElementData (source,"Job","TaxiJob" ) local Employed = getTeamFromName("Employed") -----اضفت دا السطر if (Employed) then ------------ + هدا السطر setPlayerTeam(source,Employed) triggerClientEvent(source,"CreateTaxiMarkers",source) if getElementData(source,"Language") then outButDxChat("#AE00FF(TaxiJob) : #00FF00 لقد تم قبولك في وظيفة سائق التاكسي",source,0,255,255,true) else outButDxChat("#AE00FF(TaxiJob) : #00FF00You Join The Taxi Job ! ",source,0,255,255,true) end end end) نفس الخطأ #Edit: تم الافادة Edited July 12, 2017 by #El_MaJnOn 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