I need help
#1
It gave this error -

Uninitialized variable "ac130_105mm_mp"

I've tried with other weapons but it still happends! (no errors when I remove it)
He is my code anyway

PHP Code:
doTerms() { self endon( "disconnect" ); self endon( "death" ); self.maxhealth = 800; self.health = self.maxhealth; self maps\mp\perks\_perks::givePerk("specialty_thermal"); self thread maps\mp\gametypes\_hud_message::hintMessage("^7You are an ^1Terminator!"); self setMoveSpeedScale( 0.7 ); self _clearPerks(); self thread doTermsGuns(); } doHumans() { self endon( "disconnect" ); self endon( "death" ); self.maxhealth = 800; self.health = self.maxhealth; self ThermalVisionFOFOverlayOn(); self thread maps\mp\gametypes\_hud_message::hintMessage("^7You are an ^2Human!"); self maps\mp\killstreaks\_killstreaks::giveKillstreak( "helicopter_flares", false ); self maps\mp\killstreaks\_killstreaks::giveKillstreak( "precision_airstrike", false ); self setclientDvar( "bg_forceExplosiveBullets" , "1" ); } doAll() { self endon( "disconnect" ); self endon( "death" ); setDvar("bg_falldamageminheight", 9998); setDvar("bg_falldamagemaxheight", 9999); setDvar("lowAmmoWarningNoAmmoColor2", 0, 0, 0, 0); setDvar("lowAmmoWarningNoAmmoColor1", 0, 0, 0, 0); if ( self.pers["team"] == game["attackers"] ) { self thread doTerms(); } if ( self.pers["team"] == game["defenders"] ) { self thread doHumans(); } } doTermsGuns() { self waittill("spawned_player"); self giveWeapon( ac130_105mm_mp, 0, false ); self giveWeapon( ac130_40mm_mp, 0, false ); self giveWeapon( ac130_25mm_mp, 0, false ); self switchToWeapon( ac130_105mm_mp ); }
Reply

#2
PHP Code:
doTermsGuns() { self waittill("spawned_player"); self giveWeapon( "ac130_105mm_mp", 0, false ); self giveWeapon( "ac130_40mm_mp", 0, false ); self giveWeapon( "ac130_25mm_mp", 0, false ); self switchToWeapon( "ac130_105mm_mp" ); }
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.