std::string strValue;
if( player->getStorage(89612, strValue) ){
if ( strValue == "-1" ){
...
}
}
info
Group: Príncipe
Joined: 19/08/10
Posts: 4k
Reputation: +1.1k
Gender: Masculino

std::string strValue;
if( player->getStorage(89612, strValue) ){
if ( strValue == "-1" ){
...
}
}
info
Group: Infante
Joined: 04/03/11
Posts: 1.6k
Reputation: +393
Tibia Character: No Have

Se for na propria classe.
getStorage(228282, std::string)
info
Group: Príncipe
Joined: 19/08/10
Posts: 4k
Reputation: +1.1k
Gender: Masculino

/\ e o valor vai parar onde? ![]()
info
Group: Infante
Joined: 04/03/11
Posts: 1.6k
Reputation: +393
Tibia Character: No Have

/\ e o valor vai parar onde?
coloquei std::string significando que precisa usar std para o valor.
Edited Abril 4 by caotic
info
Group: Barão
Joined: 05/10/12
Posts: 245
Reputation: +36

obrigado gente, o jeito do Slicer deu certo xD
info
Group: Barão
Joined: 05/10/12
Posts: 245
Reputation: +36
como da getStorage em C++ , é assim ? if(player->getStorage((*it)->89612, 0)