isin function [message #456777] |
Tue, 04 October 2011 06:56 |
robbyke
Messages: 348 Registered: September 2010 Location: Belgium
Karma: 0
|
Recruit |
|
|
In the old scripts there was this function :
bool isin(string String,string Search) {
if (String.find(Search) != std::string::npos) return true;
return false;
}
however in the new 4.0 im not suppossed to use the std classes but i dont understand anything of the new string classes and cant find any information about it.
any help would be appreciated.
Owner of kambot TT server
kambot.freeforums.org
|
|
|
|
|
Re: isin function [message #456796 is a reply to message #456777] |
Tue, 04 October 2011 10:48 |
robbyke
Messages: 348 Registered: September 2010 Location: Belgium
Karma: 0
|
Recruit |
|
|
thnx that worked but how do i define a string or vector.
because ive notice chatcommandclass is gone and im stil searching for a replacement in new scripts.
Owner of kambot TT server
kambot.freeforums.org
|
|
|