Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Problem

 
Post new topic   Reply to topic Printable version
 View previous topic  Damage Packet? Protocol? Post :: Post Plugin Request !  View next topic  
Author Message
jdbrune
Guest


Offline

PostPosted: Thu Dec 13, 2007 10:27 pm    Post subject: Problem Reply to topic Reply with quote

Hello,


I just need help with fixing an error problem I get when compiling flag.dll. I get this error with no changes being mad to the code.

Code: Show/Hide
Warning   1   warning C4996: 'strncpy' was declared deprecated   c:\documents and settings\d.....\mervbot\src\player.cpp   108
Warning   2   warning C4996: 'strncpy' was declared deprecated   c:\documents and settings\d......\mervbot\src\player.cpp   109
Error   3   error C2664: 'GetCurrentDirectoryW' : cannot convert parameter 2 from 'char [512]' to 'LPWSTR'   c:\documents and settings\.....\mervbot\src\flag2\spawn.cpp   53



It basically does that for 48 times for different lines. Anyways, if anyone can help I'd really appreciate it.
Back to top
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:37
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Fri Dec 14, 2007 2:52 am    Post subject: Reply to topic Reply with quote

Solution
Back to top
View users profile Send private message Add User to Ignore List
k0zy
Server Help Squatter


Gender:Gender:Male
Joined: Jan 11 2003
Posts: 571
Location: Germany
Offline

PostPosted: Fri Dec 14, 2007 4:11 am    Post subject: Reply to topic Reply with quote

The problem is that MERVBot is was written for ANSI and you're trying to compile it for UNICODE.

The possible solutions are:
- Use an older compiler
- Change every GetCurrentDirectory / GetCurrentDirectoryW to GetCurrentDirectoryA
- Tell your compiler to use ANSI (I don't know how though)
_________________
It's a shark! Oh my god! Unbelievable!
Back to top
View users profile Send private message Add User to Ignore List
jdbrune
Guest


Offline

PostPosted: Fri Dec 14, 2007 11:54 am    Post subject: Reply to topic Reply with quote

Thanks Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole.... that did the trick. However, I still have 7 errors while compiling:

Code: Show/Hide

Error   4   error C2065: 'i' : undeclared identifier   c:\documents and settings\....\mervbot\src\flag2\spawn.cpp   439
Error   5   error C2228: left of '.len' must have class/struct/union   c:\documents and settings\....\mervbot\src\flag2\spawn.cpp   485
Error   6   error C2228: left of '.len' must have class/struct/union   c:\documents and settings\....\mervbot\src\flag2\spawn.cpp   486
Error   7   error C2228: left of '.len' must have class/struct/union   c:\documents and settings\....\mervbot\src\flag2\spawn.cpp   509
Error   8   error C2228: left of '.len' must have class/struct/union   c:\documents and settings\....\mervbot\src\flag2\spawn.cpp   510
Error   9   error C2228: left of '.lfill' must have class/struct/union   c:\documents and settings\...\mervbot\src\flag2\spawn.cpp   512
Error   10   error C2228: left of '.lfill' must have class/struct/union   c:\documents and settings\....\mervbot\src\flag2\spawn.cpp   592



These error's were there before and once again I haven't made any changes yet to the source. Any ideas?


Thanks
Back to top
tcsoccerman
Server Help Squatter


Age:33
Gender:Gender:Male
Joined: Jan 15 2007
Posts: 694
Location: Atlantis
Offline

PostPosted: Fri Dec 14, 2007 4:19 pm    Post subject: Reply to topic Reply with quote

i see a kozy, but not a Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole.... ?
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Guest



Offline

PostPosted: Fri Dec 14, 2007 4:43 pm    Post subject: Reply to topic Reply with quote

Yeah, I said Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole.... but for some reason that got altered when i posted.
Back to top
k0zy
Server Help Squatter


Gender:Gender:Male
Joined: Jan 11 2003
Posts: 571
Location: Germany
Offline

PostPosted: Fri Dec 14, 2007 7:15 pm    Post subject: Reply to topic Reply with quote

That's mgbs punishment for using my own nick too often.

Could you paste some lines that contain errors?

The undeclared identifer should be easy to fix... just add "int" to the i in every for loop where it is missing.
The block scope of the for loop changed between versions.
Back to top
View users profile Send private message Add User to Ignore List
baseball43v3r
Seasoned Helper


Joined: Jan 02 2006
Posts: 102
Offline

PostPosted: Fri Dec 14, 2007 8:38 pm    Post subject: Reply to topic Reply with quote

kozy

Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole....


edit::ah i see this is hardcoded
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Thu Dec 20, 2007 3:53 pm    Post subject: Reply to topic Reply with quote

kozy
Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole....

-edit- lol mgb leaves footprints everywhere
_________________
SSC Distension Owner
SSCU Trench Wars Developer
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 64 page(s) served in previous 5 minutes.

phpBB Created this page in 0.458733 seconds : 33 queries executed (94.3%): GZIP compression disabled