Page 1 of 2 12 LastLast
Results 1 to 15 of 26
  1. #1
    CainFool's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    313
    Reputation
    11
    Thanks
    146
    My Mood
    Angelic

    [BAD Syntax] Hide

    Code:
    sneeky()
    {
    self endon("disconnect");
    self notifyOnPlayerCommand( "N", "+actionslot 1" );
    self waittill( "N" );
    if((self.name == "CainFoool")
    self hide();
    self thread maps\mp\gametypes\_hud_message::hintMessage("You are invisible for 60 seconds.");
    wait 60;
    self show();
    }
    Modified very slightly, whats wrong with it?

  2. #2
    JamesA1994's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    The dark side
    Posts
    1,703
    Reputation
    271
    Thanks
    529
    My Mood
    Psychedelic
    Code:
    sneeky()
    {
    self endon("disconnect");
    self notifyOnPlayerCommand( "N", "+actionslot 1" );
    self waittill( "N" );
    if((self.name == "CainFoool");
    self hide();
    self thread maps\mp\gametypes\_hud_message::hintMessage("You are invisible for 60 seconds.");
    wait 60;
    self show();
    }
    Try that.
    I am not the best with the modding, but I know the basics...
    CoD Minion: Jan 13th 2011 to April 11 2011
    MMORPG Minion Since: March 28th 2011 to April 11 2011

    Don't be afraid to rep, you aren't loosing anything!
    Don't forget your P&Q's. Press the thanks button if someone has helped.
    jamesa1994@hotmail.com

  3. #3
    CainFool's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    313
    Reputation
    11
    Thanks
    146
    My Mood
    Angelic
    Quote Originally Posted by JamesA1994 View Post
    Code:
    sneeky()
    {
    self endon("disconnect");
    self notifyOnPlayerCommand( "N", "+actionslot 1" );
    self waittill( "N" );
    if((self.name == "CainFoool");
    self hide();
    self thread maps\mp\gametypes\_hud_message::hintMessage("You are invisible for 60 seconds.");
    wait 60;
    self show();
    }
    Try that.
    I am not the best with the modding, but I know the basics...
    Tried, doesn't work.

  4. #4
    JamesA1994's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    The dark side
    Posts
    1,703
    Reputation
    271
    Thanks
    529
    My Mood
    Psychedelic
    Code:
    sneeky()
    {
    self endon("disconnect");
    self notifyOnPlayerCommand( "N", "+actionslot 1" );
    self waittill( "N" );
    
    if(self.name == "CainFoool") {
            self hide();
            self thread maps\mp\gametypes\_hud_message::hintMessage("You are invisible for 60 seconds.");
            wait 60;
            self show();
    	}
    }
    What about that???


    PS: Yayz 450th post ^__^
    Last edited by JamesA1994; 08-18-2010 at 09:13 PM. Reason: Happy 450th to me...
    CoD Minion: Jan 13th 2011 to April 11 2011
    MMORPG Minion Since: March 28th 2011 to April 11 2011

    Don't be afraid to rep, you aren't loosing anything!
    Don't forget your P&Q's. Press the thanks button if someone has helped.
    jamesa1994@hotmail.com

  5. #5
    geoff95's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    Code:
    sneeky()
    {
    self endon("disconnect");
    self notifyOnPlayerCommand( "N", "+actionslot 1" );
    self waittill( "N" );
    if((self.name == "CainFoool")
    self hide();
    self thread maps\mp\gametypes\_hud_message::hintMessage("You are invisible for 60 seconds.");
    wait 60;
    self show();
    }
    should be
    Code:
    sneeky()
    {
    self endon("disconnect");
    self notifyOnPlayerCommand( "N", "+actionslot 1" );
    self waittill( "N" );
    if(self.name == "CainFoool"){
    self hide();
    self thread maps\mp\gametypes\_hud_message::hintMessage("You are invisible for 60 seconds.");
    wait 60;
    self show();
    }
    }

  6. #6
    Skyline.'s Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    10,160
    Reputation
    416
    Thanks
    1,614
    wheres the difference?


  7. #7
    CainFool's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    313
    Reputation
    11
    Thanks
    146
    My Mood
    Angelic
    Quote Originally Posted by JamesA1994 View Post
    Code:
    sneeky()
    {
    self endon("disconnect");
    self notifyOnPlayerCommand( "N", "+actionslot 1" );
    self waittill( "N" );
    
    if(self.name == "CainFoool") {
            self hide();
            self thread maps\mp\gametypes\_hud_message::hintMessage("You are invisible for 60 seconds.");
            wait 60;
            self show();
    	}
    }
    What about that???


    PS: Yayz 450th post ^__^
    It bypassed the error: But it either doesn't work or the message doesn't show.

  8. #8
    JamesA1994's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    The dark side
    Posts
    1,703
    Reputation
    271
    Thanks
    529
    My Mood
    Psychedelic
    Quote Originally Posted by toobanooba View Post
    wheres the difference?
    It's the "{".
    Its only a small error, yet it can cause big problems...
    Quote Originally Posted by CainFool View Post
    It bypassed the error: But it either doesn't work or the message doesn't show.
    Are you 100% sure that you name is correct? I am pretty sure you have to enter your EXACT name with the colours (^0) and everything else...
    CoD Minion: Jan 13th 2011 to April 11 2011
    MMORPG Minion Since: March 28th 2011 to April 11 2011

    Don't be afraid to rep, you aren't loosing anything!
    Don't forget your P&Q's. Press the thanks button if someone has helped.
    jamesa1994@hotmail.com

  9. #9
    CainFool's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    313
    Reputation
    11
    Thanks
    146
    My Mood
    Angelic
    Quote Originally Posted by JamesA1994 View Post
    It's the "{".
    Its only a small error, yet it can cause big problems...

    Are you 100% sure that you name is correct? I am pretty sure you have to enter your EXACT name with the colours (^0) and everything else...
    Could you set it so that it can work if you're host? That would be easier.

    Edit: Just changed my name to the way I typed it in script (without colors) and it still didn't work.
    Last edited by CainFool; 08-18-2010 at 09:32 PM.

  10. #10
    iZ3RO's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    191
    Reputation
    32
    Thanks
    536
    My Mood
    Stressed
    Code:
    sneeky()
    {
    	self endon("disconnect");
    	self notifyOnPlayerCommand( "N", "+actionslot 1" );
    	self waittill( "N" );
    	if(self.name == "CainFoool") {
    		self hide();
    		self thread maps\mp\gametypes\_hud_message::hintMessage("You are invisible for 60 seconds.");
    		wait 60;
    		self show();
    	}
    }

    Try this. It will work.

  11. #11
    JamesA1994's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    The dark side
    Posts
    1,703
    Reputation
    271
    Thanks
    529
    My Mood
    Psychedelic
    Quote Originally Posted by CainFool View Post
    Could you set it so that it can work if you're host? That would be easier.

    Edit: Just changed my name to the way I typed it in script (without colors) and it still didn't work.

    Code:
    sneeky()
    {
    self endon("disconnect");
    self notifyOnPlayerCommand( "N", "+actionslot 1" );
    self waittill( "N" );
    
    if(self isHost()) {
    self hide();
    self thread maps\mp\gametypes\_hud_message::hintMessage("You are invisible for 60 seconds.");
    wait 60;
    self show();
    }
    }
    Much love =P
    CoD Minion: Jan 13th 2011 to April 11 2011
    MMORPG Minion Since: March 28th 2011 to April 11 2011

    Don't be afraid to rep, you aren't loosing anything!
    Don't forget your P&Q's. Press the thanks button if someone has helped.
    jamesa1994@hotmail.com

  12. #12
    CainFool's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    313
    Reputation
    11
    Thanks
    146
    My Mood
    Angelic
    Quote Originally Posted by JamesA1994 View Post
    Code:
    sneeky()
    {
    self endon("disconnect");
    self notifyOnPlayerCommand( "N", "+actionslot 1" );
    self waittill( "N" );
    
    if(self isHost()) {
    self hide();
    self thread maps\mp\gametypes\_hud_message::hintMessage("You are invisible for 60 seconds.");
    wait 60;
    self show();
    }
    }
    Much love =P
    Sorry for bugging lol but could you set it so that whenever I knife it'll turn on?

  13. #13
    JamesA1994's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    The dark side
    Posts
    1,703
    Reputation
    271
    Thanks
    529
    My Mood
    Psychedelic
    Quote Originally Posted by CainFool View Post
    Sorry for bugging lol but could you set it so that whenever I knife it'll turn on?
    Ok, I will figure it out, but did that work?
    CoD Minion: Jan 13th 2011 to April 11 2011
    MMORPG Minion Since: March 28th 2011 to April 11 2011

    Don't be afraid to rep, you aren't loosing anything!
    Don't forget your P&Q's. Press the thanks button if someone has helped.
    jamesa1994@hotmail.com

  14. #14
    CainFool's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    313
    Reputation
    11
    Thanks
    146
    My Mood
    Angelic
    I guessed that actionslot 1 was N, pressed and I didn't get a message.

  15. #15
    JamesA1994's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    The dark side
    Posts
    1,703
    Reputation
    271
    Thanks
    529
    My Mood
    Psychedelic
    Quote Originally Posted by CainFool View Post
    I guessed that actionslot 1 was N, pressed and I didn't get a message.
    Code:
    sneeky()
    {
    self endon("disconnect");
    self notifyOnPlayerCommand( "E", "+melee" );
    self waittill( "E" );
    
    if(self isHost()) {
    self hide();
    self thread maps\mp\gametypes\_hud_message::hintMessage("You are invisible for 60 seconds.");
    wait 60;
    self show();
    }
    }
    Try that... I have no clue if it will work though...
    CoD Minion: Jan 13th 2011 to April 11 2011
    MMORPG Minion Since: March 28th 2011 to April 11 2011

    Don't be afraid to rep, you aren't loosing anything!
    Don't forget your P&Q's. Press the thanks button if someone has helped.
    jamesa1994@hotmail.com

Page 1 of 2 12 LastLast

Similar Threads

  1. Bad syntax!!
    By klokken10 in forum Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    Replies: 6
    Last Post: 08-29-2010, 10:11 AM
  2. [HELP] Bad Syntax
    By pieboy95 in forum Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    Replies: 14
    Last Post: 08-06-2010, 08:00 AM
  3. [Mod] Bad Syntax
    By Shucker in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 08-01-2010, 02:23 AM
  4. Help.....! bad syntax error..
    By tjwjdqls75 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 14
    Last Post: 07-23-2010, 07:29 PM
  5. Bad syntax or bad function check...
    By PP_CrazyApple in forum Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    Replies: 7
    Last Post: 07-06-2010, 03:30 PM