Instalar Steam
iniciar sesión
|
idioma
简体中文 (chino simplificado)
繁體中文 (chino tradicional)
日本語 (japonés)
한국어 (coreano)
ไทย (tailandés)
Български (búlgaro)
Čeština (checo)
Dansk (danés)
Deutsch (alemán)
English (inglés)
Español de Hispanoamérica
Ελληνικά (griego)
Français (francés)
Italiano
Bahasa Indonesia (indonesio)
Magyar (húngaro)
Nederlands (holandés)
Norsk (noruego)
Polski (polaco)
Português (Portugués de Portugal)
Português-Brasil (portugués de Brasil)
Română (rumano)
Русский (ruso)
Suomi (finés)
Svenska (sueco)
Türkçe (turco)
Tiếng Việt (vietnamita)
Українська (ucraniano)
Comunicar un error de traducción
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.