Jump to content

تصحيح كود


Recommended Posts

السلام عليكم ورحمة الله تعالى وبراكته
انشاء الله تكونون بافضل حال
اريد تصحيح الكود

---------------------------الكود سيرفر -----------------------------------
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
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 by #El_MaJnOn
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...