LucasFerraz
Systems Analyst
I followed this tutorial to get much real QuestLog to my tasks.
I have replaced the whole code:
With the new code, but I receive this error:
How can I solve? Using rev3884.
EDIT:
I have replaced the whole code:
LUA:
std::string Mission::getDescription(Player* player)
{
std::string value;
player->getStorage(storageId, value);
if(state.size())
return parseStorages(state, value);
if(atoi(value.c_str()) >= endValue)
return parseStorages(states.rbegin()->second, value);
for(int32_t i = endValue; i >= startValue; --i)
{
player->getStorage(storageId, value);
if(atoi(value.c_str()) == i)
return parseStorages(states[i - startValue], value);
}
return "Couldn't retrieve any mission description, please report to a gamemaster.";
}
With the new code, but I receive this error:
How can I solve? Using rev3884.
EDIT:
replace all:
[cpp]atoi(temp.c_str())[/cpp]
with:
[cpp]temp[/cpp]
kind regards, Evil Hero.
Last edited: