i need help in creating to function that search a string for different things. what i need is that each one searches for a specific string at the begining and than takes the rest into a string and takes away the space infront of it. Any help will be apreciated.
ok sorry this is for a chat room i am making what i want this to work if they type in "/nickchange" or "/me" at the begining.
For example if they type in
the first function looks for "/nickchange" so it would take that message than it goes and takes out the "Bob" and just stores it in a variable
The other function works if they type in "/me" at the begining like this
it searches for the "/me" and takes out "Test" and stores it.
and if you see the quotes they are just there so you know what i what it to search for and output without spaces. And the functions should only work if "/me" and "/nickchange" or at the begining.