AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   Problems (https://forums.alliedmods.net/showthread.php?t=266121)

MaSTeR64 07-11-2015 07:57

Problems
 
Hello. Im having problems with the include <hamsandwich>

Each time i add #include <hamsandwich> on top of the line and try to compile it, these errors happen:

Code:

error 017: undefined symbol "AMXX_VERSION_NUM" - line 47 (i never added AMXX_VERSION_NUM to plugin)
error 017: undefined symbol "get_func_id" - line 361 (My plugin isnt even that big! My plugin has 254 lines)
warning 215: expression has no effect - line 361
warning 215: expression has no effect - line 361 (it happens 2 times)
error 001: expected token: ";", but found "??" - line 361 (the ?? are some signs i dont event know xD)
error 029: invalid expression, assumed zero - line 361
fatal error 107: too many error messages on one line - line 361

Please, but please help me fix it ASAP i need it!!

fysiks 07-11-2015 08:36

Re: Problems
 
The first two are probably because you aren't including amxmodx.inc (both of those should be in there). This must be included for all plugins.

On line 361, you appear to have a major syntax error but since you've not attached your .sma file, I can't help much on that one.

MaSTeR64 07-11-2015 09:38

Re: Problems
 
The code is private, cant give it to you. amxmodx.inc is included.

PHP Code:

#include <hamsandwich>
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun> 

What do you mean by i have a major syntax error? My plugin isnt even that big...

Jhob94 07-11-2015 09:50

Re: Problems
 
Another top mega master plugin. Do you think we are magicians? We can not know why it happens if you don't show the code. If you don't want to show full code, show the function where the error happens.

zmd94 07-11-2015 10:00

Re: Problems
 
Just change the arrangement of the include:
Code:

#include <hamsandwich>
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

-->
Code:

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <fun>


fysiks 07-11-2015 19:31

Re: Problems
 
Quote:

Originally Posted by MaSTeR64 (Post 2318380)
What do you mean by i have a major syntax error? My plugin isnt even that big...

How can I answer that question without the code?


All times are GMT -4. The time now is 16:26.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.