Results 1 to 5 of 5

Thread: anyInt function exists?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Code:
    stripint(string)
    {
    	newstring = "";
    	for(i = 0; i < string.size; i++)
    	{
    		if(!isint(string[i]))
    			newstring += string[i];
    	}
    	return newstring;
    }
    
    isint(char)
    {
    	return issubstr("0123456789", char);
    }
    or, which i think you might ACTUALLY need:

    Code:
    checkifsame(string1, string2) //call like: checkifsame(player.name, "player #")
    {
    	return issubstr(string1, string2);
    }
    Good luck

  2. The Following 2 Users Say Thank You to IzNoGoD For This Useful Post:

    EvoloZz (8th February 2013),kung foo man (8th February 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •