Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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 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 );

Reply

#2
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" );

Reply



Forum Jump:


Users browsing this thread:
2 Guest(s)

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