Endless-Guide v.2
This forum as just been made please give us time while our staff members work on it we are still lookin for moderators(staffs) please email ''endless-guide@hotmail.com'' for application


The Guide for Endless-Online Players
 
HomeCalendarGalleryFAQSearchMemberlistUsergroupsRegisterLog in
Search
 
 

Display results as :
 
Rechercher Advanced Search
Latest topics
» Ruthless Aggression
Tue Oct 05, 2010 9:21 am by Microchip

» Copycat command
Tue Oct 05, 2010 9:16 am by Microchip

» #title command
Fri Sep 03, 2010 5:49 pm by michael032777

» Rev 187 character creation error
Fri Sep 03, 2010 5:38 pm by michael032777

» Modernwarfare2pwns.no-ip.org
Tue Aug 24, 2010 4:29 pm by artsyfartsy

» Want Hacks for Endless Online? Join EO-Hackers!
Fri Aug 06, 2010 7:48 am by Slymask3

» Want Hacks for Endless Online? Join EO-Hackers!
Wed Aug 04, 2010 11:21 am by Slymask3

» Want Hacks for Endless Online? Join EO-Hackers!
Wed Aug 04, 2010 11:21 am by Slymask3

» Want Hacks for Endless Online? Join EO-Hackers!
Wed Aug 04, 2010 11:21 am by Slymask3

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Forum
Affiliates
free forum
 

Share | 
 

 #title command

Go down 
AuthorMessage
oxyda
Admin
avatar

Posts : 38
Join date : 2010-03-26

PostSubject: #title command   Sun Mar 28, 2010 11:54 am

if (command.length() >= 5 && command.compare(0,5,"title") == 0 && arguments.size() >= 1 && static_cast<std::string>(this->server->world->player_config["Title"]) == "true")
{
std::string ntitle;
std::transform(arguments[0].begin(), arguments[0].end(), arguments[0].begin(), static_cast<int(*)(int)>(std::tolower));
for (int i = 0; i < static_cast<int>(arguments.size()); i++)
{
if (ntitle == "")
{
ntitle = arguments[i];
}
else
{
ntitle += " " + arguments[i];
}
}
if (ntitle.length() > 19)
{
ntitle = ntitle.substr(0, 19);
}
this->player->character->title = ntitle;
}
}
Back to top Go down
View user profile
michael032777



Posts : 3
Join date : 2010-09-03
Age : 41

PostSubject: Re: #title command   Fri Sep 03, 2010 5:49 pm

this was usefull gt rid the title error was in other title command here the complete fix

Code:

if (message[0] == '#') {
std::string command;
std::vector<std::string> arguments = util::explode(' ', message);
command = arguments.front().substr(1);
arguments.erase(arguments.begin());

if (command.length() >= 5 && command.compare(0,5,"title") == 0 && arguments.size() >= 1) {
std::string ntitle;
std::transform(arguments[0].begin(), arguments[0].end(), arguments[0].begin(), static_cast<int(*)(int)>(std::tolower));
for (int i = 0; i < static_cast<int>(arguments.size()); i++) {
if (ntitle == "") { ntitle = arguments[i]; } else { ntitle += " " + arguments[i]; } }
if (ntitle.length() > 19) { ntitle = ntitle.substr(0, 19); } this->player->character->title = ntitle; }

}
Back to top Go down
View user profile
 
#title command
Back to top 
Page 1 of 1
 Similar topics
-
» [RELEASE] MyBrute Tournament Title Probabilities
» So what I get??
» Random titles hoo
» My Level 17 got Sticking Plaster Ripper
» Bilbao Masters Final 2012

Permissions in this forum:You cannot reply to topics in this forum
Endless-Guide v.2 :: Softwares :: EOSERV-
Jump to: