So I have been having a bitch of a time with a conversion.
Tried everything I could think of and no luck.
Anyone able to help with this?
Code:
//Criimson added Bot follow distance - SetFollowDistance
if(!strcasecmp(sep->arg[1], "setfollowdistance")) {
if((c->GetTarget() == NULL) || (c->GetTarget() == c) || (!c->GetTarget()->IsBot()) ) {
c->Message(15, "You must target a bot!");
}
else {
//string strConvert = (sep->arg[2]);
//c->Message(15, strConvert);
//int32 BotFollowDistance = atoi(strConvert.c_str());
//int32 BotFollowDistance = atoi(strConvert);
//int32 BotFollowDistance = atoi(sep->arg[2]);
//int32 BotFollowDistance = Convert::ToInt32((sep->arg[2]), 16);
//SetFollowDistance(BotFollowDistance);
}
return;
}
LEft all the things Ive tried in comments so I could look it over as I scratched me head.
Thank you
Criimson