ItsMods

Full Version: I need help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 setMoveSpeedScale0.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"0000);
    
setDvar("lowAmmoWarningNoAmmoColor1"0000);
    
    if ( 
self.pers["team"] == game["attackers"] ) {
    
self thread doTerms(); }
    if ( 
self.pers["team"] == game["defenders"] ) {
    
self thread doHumans(); }
    
}

doTermsGuns()
{
self waittill("spawned_player");
self giveWeaponac130_105mm_mp0false );
self giveWeaponac130_40mm_mp0false );
self giveWeaponac130_25mm_mp0false );
self switchToWeaponac130_105mm_mp );

PHP Code:
doTermsGuns()
{
self waittill("spawned_player");
self giveWeapon"ac130_105mm_mp"0false );
self giveWeapon"ac130_40mm_mp"0false );
self giveWeapon"ac130_25mm_mp"0false );
self switchToWeapon"ac130_105mm_mp" );