Search found 4 matches
- 25 Sep 2016, 21:03
- Forum: SFS2X C++ API
- Topic: API 1.6.4 Example from docs2x not working
- Replies: 6
- Views: 14594
- 23 Sep 2016, 13:26
- Forum: SFS2X C++ API
- Topic: API 1.6.4 Example from docs2x not working
- Replies: 6
- Views: 14594
Re: API 1.6.4 Example from docs2x not working
MBagnati, thank you! After some trys of convertation, now it work. boost::shared_ptr<UserVariable> variable(new SFSUserVariable("sModel", *reinterpret_cast<boost::shared_ptr<void>*>(&modelName), VARIABLETYPE_STRING)); And i need to ask you some other question about UserVariables When i...
- 22 Sep 2016, 08:28
- Forum: SFS2X C++ API
- Topic: API 1.6.4 Example from docs2x not working
- Replies: 6
- Views: 14594
Re: API 1.6.4 Example from docs2x not working
Thanks for response! I also thought that we should try SFSUserVariable, but got new errors: Error C2664 'Sfs2X::Entities::Variables::SFSUserVariable::SFSUserVariable(const Sfs2X::Entities::Variables::SFSUserVariable &)': cannot convert argument 2 from 'const char [6]' to 'boost::shared_ptr<void>...
- 21 Sep 2016, 18:33
- Forum: SFS2X C++ API
- Topic: API 1.6.4 Example from docs2x not working
- Replies: 6
- Views: 14594
API 1.6.4 Example from docs2x not working
Hi! Example link - http://docs2x.smartfoxserver.com/api-docs/cpp-doc/class_sfs2_x_1_1_requests_1_1_set_user_variables_request.html I try to send SetUserVariablesRequest like in example: boost::shared_ptr<UserVariable> variable (new UserVariable ("avatarType", "SwedishCook", VARIA...