AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   compile issue (https://forums.alliedmods.net/showthread.php?t=337612)

Usama Ali 05-02-2022 23:46

compile issue
 
1 Attachment(s)
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

raizo11 05-03-2022 00:16

Re: compile issue
 
HIT_STOMATCH is already defined in amxconst.inc

use online compiler https://amx.icegame.ro/amxx/webcompiler.php

Usama Ali 05-03-2022 02:57

Re: compile issue
 
Quote:

Originally Posted by raizo11 (Post 2778520)
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

fysiks 05-03-2022 22:33

Re: compile issue
 
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.


All times are GMT -4. The time now is 21:20.

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