Doggynub
LUA / C++
- Joined
- Sep 28, 2008
- Messages
- 2,541
- Reaction score
- 186
OH wow you are great man!I have script with one sqm under Creature.
Only one code from source To delete![]()
OH wow you are great man!I have script with one sqm under Creature.
Only one code from source To delete![]()
if(target->getStorage(g_config.getNumber(ConfigManager::FLY_STORAGE), value) && atoi(value.c_str()) > 0)
4300 xxxx\game.cpp invalid conversion from 'int32_t' to 'const char*'
4300 xxxx\game.cpp initializing argument 1 of 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]'
Awesome script :w00t:
but I have problem I'm using TFS 0.4 trunk 3884 and when I flying and moving then appear magic effect poff.
I don't changing in anything in source beacuse when I try to compile I get the error
Problematic line:
Code:if(target->getStorage(g_config.getNumber(ConfigManager::FLY_STORAGE), value) && atoi(value.c_str()) > 0)
Error
x3Code:4300 xxxx\game.cpp invalid conversion from 'int32_t' to 'const char*' 4300 xxxx\game.cpp initializing argument 1 of 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]'
Could someone fix it?? :huh:
You will need to remake the source edits for 0.4. It's quite different to 0.3.6 in the sources.
Maybe is way without remake sources?? Only change something??
int32_t value;
if(target->getStorage(g_config.getNumber(ConfigManager::FLY_STORAGE), value) && value > 0)
4347 xxxx\game.cpp no matching function for call to 'Creature::getStorage(int32_t, int32_t&)'
note xxxx\creature.h:340 candidates are: virtual bool Creature::getStorage(const std::string&, std::string&) const
Hmm not working
Code:4347 xxxx\game.cpp no matching function for call to 'Creature::getStorage(int32_t, int32_t&)' note xxxx\creature.h:340 candidates are: virtual bool Creature::getStorage(const std::string&, std::string&) const
if(target->getStorage(g_config.getNumber(ConfigManager::FLY_STORAGE), value) && atoi(value.c_str()) > 0)
if(target->getStorage(g_config.getNumber(ConfigManager::FLY_STORAGE), value) && (int32_t)atoi(value.c_str()) > 0)
(target->getStorage(g_config.getNumber(ConfigManager::FLY_STORAGE), value)
WATER = {4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619}
ITEM_WATERTILE = 4625
You can explain it:
...LUA:WATER = {4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619}
...LUA:ITEM_WATERTILE = 4625
THX.
Im using TFS 0.3.6 and this changes in sources causes debug in client and closes.
This bug happens when i use the talk action fly up or fly down....
im repeat 2 times the sources edition and the bug persists plz help.
OBS: In the first post has a bug in the lines of codes plz solve this problem...
I'm sure that there isn't any bug because i tested it after post it on forum, tested all scripts (including source edit, i compiled a new distro) and all works fine, also i made the test on TFS 0.3.6 PL1
How to remove the POFF efect where u flying ?
in the air on change of sqm the POFF effect has sent