Results 1 to 1 of 1
  1. #1
    codGmer's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    lol
    Posts
    45
    Reputation
    10
    Thanks
    0
    My Mood
    Relaxed

    Remove characters from string

    Hello,

    I want to remove some characters from a string in GSC but i can't seem to figure out what kind of function i need to use.

    Code:
    onPlayerSpawned()
    {
    	self endon("disconnect");
    
    	for(;;)
    	{
    		self waittill("spawned_player");
    		self thread noTube();
    	}
    }
    
    noTube()
    {
        self endon("death");
        self endon("disconnect");
    
        for(;;)
        {
            if(isSubStr(self getCurrentWeapon(), "_gl"))
            {
            	self.ownWeapon = self getCurrentWeapon();
            	self.ownWeapon = **Remove _gl from string**("_gl", "");//here
    			self takeWeapon(self.ownWeapon); 
    			self giveWeapon(self.ownWeapon, 0, false );
    			self switchToWeapon(self.ownWeapon, 0, false );
            }
            wait 0.05;
        }
    }
    Last edited by codGmer; 10-27-2015 at 07:09 AM.

Similar Threads

  1. [Solved] Removeing Certain Characters From a Textbox
    By Cryptonic in forum Visual Basic Programming
    Replies: 8
    Last Post: 05-04-2013, 07:14 PM
  2. [HELP]Remove C:\ from C:\Test.txt in filename (Openfiledialog)
    By Pixie in forum Visual Basic Programming
    Replies: 1
    Last Post: 12-14-2009, 04:43 PM
  3. Remove Me From Cock Sk
    By whtlight in forum General
    Replies: 51
    Last Post: 11-18-2009, 02:29 PM
  4. Remove Whts_backup from Cs?
    By Hello-GoodBye in forum Spammers Corner
    Replies: 1
    Last Post: 10-14-2009, 11:01 AM
  5. Remove me from this group
    By GOD in forum General
    Replies: 70
    Last Post: 10-11-2009, 06:09 AM