Raised This Month: $32 Target: $400
 8% 

compile issue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Usama Ali
Member
Join Date: Apr 2020
Old 05-02-2022 , 23:46   compile issue
Reply With Quote #1

when i try to compile most of the knife menu's it shows me the following error.
error 017: undefined symbol "HIT_STOMATCH"

error 000: must be constant expression; assumed zero
Attached Files
File Type: sma Get Plugin or Get Source (zp_knifes.sma - 58 views - 33.8 KB)
Usama Ali is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 05-03-2022 , 00:16   Re: compile issue
Reply With Quote #2

HIT_STOMATCH is already defined in amxconst.inc

use online compiler https://amx.icegame.ro/amxx/webcompiler.php
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
Usama Ali
Member
Join Date: Apr 2020
Old 05-03-2022 , 02:57   Re: compile issue
Reply With Quote #3

Quote:
Originally Posted by raizo11 View Post
HIT_STOMATCH is already defined in amxconst.inc

use online compiler https://amx.icegame.ro/amxx/webcompiler.php
idk why but first it compiles the sma but after i change any small thing.. like even a title it then shows the following error : error 010: invalid function or declaration
or this error 029: invalid expression, assumed zero

Last edited by Usama Ali; 05-03-2022 at 03:00.
Usama Ali is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-03-2022 , 22:33   Re: compile issue
Reply With Quote #4

Beware of using random online compilers as there is a chance that they can build in malicious code (like a back door). Always compile plugins locally if at all possible.

Also, HIT_STOMATCH is not defined anywhere in AMX Mod X. However, HIT_STOMACH is defined in amxmisc.inc (notice that the real constant only has one T and not two). If it is truly spelled wrong in one of your includes then it needs to be resolved either by defining the term or if it is supposed to be HIT_STOMACH then it needs corrected. Since this error is in your file, I'd actually consider double checking that you have the correct include file because it's possible that there are other issues in this one.
__________________
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 17:47.


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