• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Compiling Rev 5831 spells.cpp Problem and some problems more!

Vesgo

Member
Joined
Dec 4, 2009
Messages
356
Solutions
1
Reaction score
15
Location
Brasil
Hey fellows, im trying to compile and im getting this problem, any help??

1>..\spells.cpp(860): error C2065: 'target' : undeclared identifier
1>..\spells.cpp(860): error C2227: left of '->getPlayer' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\spells.cpp(1022): error C2065: 'target' : undeclared identifier
1>..\spells.cpp(1022): error C2227: left of '->getPlayer' must point to class/struct/union/generic type
1> type is ''unknown-type''

I follows as many tutorials i could find, using the settings.props from MartyX, and his SDK. but im stuck on it.

Thank you in advance.

PS: I dont really know if its the right place to ask, but, im trying, as i notice, it might be a bug in sources... TY!
 
Last edited:
It's a source error. Remove the && !player->isEnemy(target->getPlayer(), false)
 
Ty Ninja, i did that and now im getting the following errors:
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
1> Generating code
1> Finished generating code
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

BTW, i went back to Visual Studio 2010 EXPRESS and started all over again!

I dont have a clue what is it LOL.... any hints?

EDIT: SOLVED!! Researching the net i found this:
I heard you need to install the SP1 for VS2010. Got the same problem Wink | ;-)

then i went to this site:
http://www.microsoft.com/en-us/download/confirmation.aspx?id=23691

and i got this:

1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
1> Generating code
1> Finished generating code
1> tfs.vcxproj -> C:\Users\Aspira Maldito\Desktop\forgottenserver-trunk.r5831 LAST 960\trunk.r5831\vc10\Release\tfs.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

Im going to teste the compiled version.. but i hope this help anyone!!!!
 
Last edited:
Ty Ninja, i did that and now im getting the following errors:


BTW, i went back to Visual Studio 2010 EXPRESS and started all over again!

I dont have a clue what is it LOL.... any hints?

EDIT: SOLVED!! Researching the net i found this:


then i went to this site:
http://www.microsoft.com/en-us/download/confirmation.aspx?id=23691

and i got this:



Im going to teste the compiled version.. but i hope this help anyone!!!!
Thanks sir i had the same problem, now finally works!!!
 
Back
Top Bottom