You are viewing our Forum Archives. To view or take place in current topics click here.
[HELP] Menu Functions for a Patch
Posted:

[HELP] Menu Functions for a PatchPosted:

AlexPolska
  • TTG Senior
Status: Offline
Joined: Jan 31, 201014Year Member
Posts: 1,418
Reputation Power: 90
Status: Offline
Joined: Jan 31, 201014Year Member
Posts: 1,418
Reputation Power: 90
//call in menu
chromeGuns()
{
   self notify("CHROMEGUNS");
}

//call in onplayerspawn
toggleChromeGuns()
{
   self endon ( "death" );
   self endon ( "disconnect" );
   
   for(;;){
      self waittill("CHROMEGUNS");
      self setClientDvar( "r_specularmap", "2" );
                self iPrintln( "Chrome Guns: ON" );
      self waittill("ChromeGuns");
      self setClientDvar( "r_specularmap", "1" );
                self iPrintln( "Chrome Guns: OFF" );       
      }
}





Somehow, that keeps on giving me a "Syntax Error."
Any ideas as to why?


Last edited by AlexPolska ; edited 1 time in total
#2. Posted:
Cozo
  • TTG Undisputed
Status: Offline
Joined: Apr 24, 201014Year Member
Posts: 5,102
Reputation Power: 405
Status: Offline
Joined: Apr 24, 201014Year Member
Posts: 5,102
Reputation Power: 405
isnt it 0 instead of 1 to switch it off ?
#3. Posted:
Maximilian
  • TTG Fanatic
Status: Offline
Joined: Jul 05, 201013Year Member
Posts: 4,077
Reputation Power: 195
Status: Offline
Joined: Jul 05, 201013Year Member
Posts: 4,077
Reputation Power: 195
TTG_CAZ wrote isnt it 0 instead of 1 to switch it off ?


Thats it
#4. Posted:
Shox
  • TTG Contender
Status: Offline
Joined: Mar 27, 201014Year Member
Posts: 3,587
Reputation Power: 288
Status: Offline
Joined: Mar 27, 201014Year Member
Posts: 3,587
Reputation Power: 288
TTG_CAZ wrote isnt it 0 instead of 1 to switch it off ?


Values wouldn't get Syntax.. and lol this is on HaVoC Undeads aim
#5. Posted:
AlexPolska
  • TTG Senior
Status: Offline
Joined: Jan 31, 201014Year Member
Posts: 1,418
Reputation Power: 90
Status: Offline
Joined: Jan 31, 201014Year Member
Posts: 1,418
Reputation Power: 90
RusH_HD_Shox wrote
TTG_CAZ wrote isnt it 0 instead of 1 to switch it off ?


Values wouldn't get Syntax.. and lol this is on HaVoC Undeads aim


I offered to help him ;)
Is there a problem with that?
#6. Posted:
AlexPolska
  • TTG Senior
Status: Offline
Joined: Jan 31, 201014Year Member
Posts: 1,418
Reputation Power: 90
Status: Offline
Joined: Jan 31, 201014Year Member
Posts: 1,418
Reputation Power: 90
Should the second ChromeGuns be all caps? That wouldn't really effect it though....
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.