Cài đặt Steam
Đăng nhập
|
Ngôn ngữ
简体中文 (Trung giản thể)
繁體中文 (Trung phồn thể)
日本語 (Nhật)
한국어 (Hàn Quốc)
ไทย (Thái)
Български (Bulgaria)
Čeština (CH Séc)
Dansk (Đan Mạch)
Deutsch (Đức)
English (Anh)
Español - España (Tây Ban Nha - TBN)
Español - Latinoamérica (Tây Ban Nha cho Mỹ Latin)
Ελληνικά (Hy Lạp)
Français (Pháp)
Italiano (Ý)
Bahasa Indonesia (Indonesia)
Magyar (Hungary)
Nederlands (Hà Lan)
Norsk (Na Uy)
Polski (Ba Lan)
Português (Tiếng Bồ Đào Nha - BĐN)
Português - Brasil (Bồ Đào Nha - Brazil)
Română (Rumani)
Русский (Nga)
Suomi (Phần Lan)
Svenska (Thụy Điển)
Türkçe (Thổ Nhĩ Kỳ)
Українська (Ukraina)
Báo cáo lỗi dịch thuật








i have ms paint. i pressed copy and i cant paste it to the "materials" folder. can you help me? i tried e v e r y s i n g l e w a y and i cant do it.
oh
function ENT:HaveEnemy()
if ( self:GetEnemy() and IsValid(self:GetEnemy()) ) then
if ( self:GetRangeTo(self:GetEnemy():GetPos()) > self.LoseTargetDist ) then
return self:FindEnemy()
elseif ( self:GetEnemy():IsPlayer() and !self:GetEnemy():Alive() ) then
return self:FindEnemy()
end
return true
else
return self:FindEnemy()
end
end
Compare yours and mine. You can use the ctrl + f function to help you.
ENT:HaveEnemy()
if ( self:GetEnemy() and IsValid(self:GetEnemy()) ) then
if ( self:GetRangeTo(self:GetEnemy():GetPos()) > self.LoseTargetDist ) then
return self:FindEnemy()
elseif ( self:GetEnemy():IsPlayer() and !self:GetEnemy():Alive() ) then
return self:FindEnemy()
end
return true
else
return self:FindEnemy()
end
end")
Well, that was an easy find. You have an extra ") after your last end. Just remove it and the problem should be fixed. The other parts of the code are identical.