Raised This Month: $ Target: $400
 0% 

Problems


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MaSTeR64
Member
Join Date: Apr 2015
Location: Serbia <3
Old 07-11-2015 , 07:57   Problems
Reply With Quote #1

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!!
__________________

Trolololololo...
MaSTeR64 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-11-2015 , 08:36   Re: Problems
Reply With Quote #2

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.
__________________

Last edited by fysiks; 07-11-2015 at 08:38.
fysiks is offline
MaSTeR64
Member
Join Date: Apr 2015
Location: Serbia <3
Old 07-11-2015 , 09:38   Re: Problems
Reply With Quote #3

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...
__________________

Trolololololo...

Last edited by MaSTeR64; 07-11-2015 at 09:42.
MaSTeR64 is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 07-11-2015 , 09:50   Re: Problems
Reply With Quote #4

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.
__________________
Jhob94 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-11-2015 , 10:00   Re: Problems
Reply With Quote #5

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>
zmd94 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-11-2015 , 19:31   Re: Problems
Reply With Quote #6

Quote:
Originally Posted by MaSTeR64 View Post
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?
__________________
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:53.


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