My first Module: AssMan

-=@Driphter@=-

BattleForums Addict
Joined
May 27, 2003
Messages
716
Reaction score
0
Location
Michigan, US
Website
www.beef4kids.com
Yay!!! I made my first module!!! The only problem is that I don't have a working c++ compiler so I'm releasing this module in source code. The module is AssMan(Assassin Manager.) It auto mattically uses charge and finsh skills on enemies when you click on them. Remember this is my first module and it is untested, so pls post all bugs below!
 

Korittke

Member!
Joined
Dec 30, 2002
Messages
5,993
Reaction score
0
Website
Visit site
good work, however that thing has about 40 errors and im not in the mood to fix them all ;) you should really get a compiler.
Code:
--------------------Configuration: assman1 - Win32 Release--------------------
Compiling...
assman1.cpp
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(137) : error C2440: '=' : cannot convert from 'int' to 'unsigned char [2]'
        There are no conversions to array types, although there are conversions to references or pointers to arrays
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(138) : error C2440: '=' : cannot convert from 'int' to 'unsigned char [2]'
        There are no conversions to array types, although there are conversions to references or pointers to arrays
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(170) : warning C4805: '==' : unsafe mix of type 'int' and type 'const bool' in operation
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(175) : error C2501: 'go' : missing storage-class or type specifiers
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(175) : error C2374: 'go' : redefinition; multiple initialization
        C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(36) : see declaration of 'go'
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(176) : error C2143: syntax error : missing ';' before '->'
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(176) : error C2501: 'server' : missing storage-class or type specifiers
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(176) : error C2040: 'server' : 'int' differs in levels of indirection from 'struct functionentrypoints_t *'
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(176) : error C2143: syntax error : missing ';' before '->'
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(177) : error C2143: syntax error : missing ';' before 'return'
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(178) : error C2143: syntax error : missing ';' before '}'
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(178) : error C2143: syntax error : missing ';' before '}'
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(178) : error C2143: syntax error : missing ';' before '}'
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(180) : error C2143: syntax error : missing ';' before '{'
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(180) : error C2447: missing function header (old-style formal list?)
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(204) : error C2146: syntax error : missing ';' before identifier 'c1'
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(205) : error C2146: syntax error : missing ';' before identifier 'c2'
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(206) : error C2143: syntax error : missing ';' before 'return'
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(212) : error C2664: 'int (const char *,const char *,const char *,const char *)' : cannot convert parameter 4 from 'unsigned char [2]' to 'const char *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(213) : error C2664: 'int (const char *,const char *,const char *,const char *)' : cannot convert parameter 4 from 'unsigned char [2]' to 'const char *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(214) : error C2664: 'int (const char *,const char *,const char *,const char *)' : cannot convert parameter 4 from 'int' to 'const char *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(220) : error C2446: '>' : no conversion from 'const int' to 'char *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(220) : error C2040: '>' : 'char *' differs in levels of indirection from 'const int'
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(220) : error C2446: '<' : no conversion from 'const int' to 'char *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(220) : error C2040: '<' : 'char *' differs in levels of indirection from 'const int'
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(222) : error C2440: '=' : cannot convert from 'char *' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(222) : error C2143: syntax error : missing ';' before 'return'
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(262) : error C2065: 'apacket' : undeclared identifier
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(262) : error C2109: subscript requires array or pointer type
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(262) : warning C4805: '==' : unsafe mix of type 'int' and type 'const bool' in operation
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(265) : error C2143: syntax error : missing ';' before '}'
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(266) : error C2109: subscript requires array or pointer type
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(266) : warning C4805: '==' : unsafe mix of type 'int' and type 'const bool' in operation
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(275) : warning C4805: '==' : unsafe mix of type 'int' and type 'const bool' in operation
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(349) : warning C4805: '==' : unsafe mix of type 'int' and type 'const bool' in operation
C:\Programme\Microsoft Visual Studio\MyProjects\assman1\assman1.cpp(351) : error C2143: syntax error : missing ';' before '}'
Error executing cl.exe.

assman1.dll - 31 error(s), 5 warning(s)
Code:
go=atoi(server->GetHackProfileString("AssMan","config","Start");
	charge=atoi(server->GetHackProfileString("AssMan","config","Charge");
	finish=atoi(server->GetHackProfileString("AssMan","config","Finish");
	charges=atoi(server->GetHackProfileString("AssMan","config","Charges");
^you need 2 ")"'s at the end
Code:
INT charges=1
INT a=1

BOOL go=true
BOOL c=false
BOOL c1=false
BOOL c2=false

BYTE charge[2]
BYTE finish[2]
you forgot ";" behind each of them
 

MiNiAn

Member!
Joined
Jan 18, 2003
Messages
759
Reaction score
0
Location
England
Nice work :)

I might make an assa now ^^ Maybe test it and hope to see more of these modules :p
 

Cold World

Member!
Joined
Jun 22, 2003
Messages
249
Reaction score
0
Location
N. America
Website
Visit site
Originally posted by Sicloan
sublime i didnt understand a word u just said
SPAMMER!
He said: Wow keep up the great work. I have a godly assasin that I like to use to duel other assasins with.

@Topic: Have you tested this yourself Driphter? And are you gonna fix those errors? I'd like to see a final version of this since it is very useful.
 

mthegreatone

Member!
Joined
May 18, 2003
Messages
420
Reaction score
0
Website
Visit site
Driphter, i can PROBABLY send u a copy of visual c++ via snail-mail (obviously)....damn how much would it cost to send it to you (considering u live in michigan)?
 

-=@Driphter@=-

BattleForums Addict
Joined
May 27, 2003
Messages
716
Reaction score
0
Location
Michigan, US
Website
www.beef4kids.com
Well, I was pretty sure that there were gonna be errors:(. Thanx for the tips though Korittke! I'm tryin to download Visual C++ on Kazaa Lite its been taking forever(half way through one download I found that i was download visual basic lol). And how can you people say good job when you haven't even tried it yet lol.
 

NewPosts

New threads

Top