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
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
Endless-Guide v.2
Would you like to react to this message? Create an account in a few clicks or log in to continue.


The Guide for Endless-Online Players
 
HomeGalleryLatest imagesSearchRegisterLog in
Search
 
 

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

» Copycat command
#title command Icon_minitimeTue Oct 05, 2010 9:16 am by Microchip

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

» Rev 187 character creation error
#title command Icon_minitimeFri Sep 03, 2010 5:38 pm by michael032777

» Modernwarfare2pwns.no-ip.org
#title command Icon_minitimeTue Aug 24, 2010 4:29 pm by artsyfartsy

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

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

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

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

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Forum
Affiliates
free forum
 

 

 #title command

Go down 
2 posters
AuthorMessage
oxyda
Admin
oxyda


Posts : 38
Join date : 2010-03-26

#title command Empty
PostSubject: #title command   #title command Icon_minitimeSun 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
michael032777




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

#title command Empty
PostSubject: Re: #title command   #title command Icon_minitimeFri 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
 
#title command
Back to top 
Page 1 of 1
 Similar topics
-
» #command
» Copycat command
» #heal COMMAND
» #dismiss command for pet
» $promote command

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