std::string value;
if(!getStorage(897, value))
int32_t attackValue = value;
'class player' has no member named 'getStorageValue'
i will try again to see the error
but now i'm compiling
i try like that
Code:std::string value; if(!getStorage(897, value)) int32_t attackValue = value;
@edit
the error
Code:'class player' has no member named 'getStorageValue'
i guess you don understand what i want
i need to turn the "attackValue" equal to the value of storage
you know?
int32_t attackValue = 0;
std::string value;
player->getStorage(897, value);
if (value != "-1") {
attackValue = atoi(value.c_str());
}
Sure,really thx @djseban
works perfectly
so...
you can explain to me how this work
i really like to understand better c++
--edit
yes i use 0.3.6pl