AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=43)
-   -   Compiling problems! (https://forums.alliedmods.net/showthread.php?t=343674)

niko4432 08-20-2023 06:04

Compiling problems!
 
//// sh_ubergunner.sma
//
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\include \VexdUM.inc(24) : error 021: symbol already defined: "radius_damage"
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\include \VexdUM.inc(30) : error 021: symbol already defined: "DispatchKeyValue"
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\include \VexdUM.inc(34) : error 021: symbol already defined: "trace_line"
//


I cant compile a couple of heroes, i get this error. but i got the vexdUM files, anyone know how to fix this ? :down:

niko4432 08-21-2023 13:20

Re: Compiling problems!
 
Solved ! found a fix
from arje!

Well I was able to solve it, I just had to modify the following lines in engine.inc

PHP Code:
native DispatchKeyValue(...);

native radius_damage(const Float:fExplodeAt[3], iDamageMultiplier, iRadiusMultiplier);

native trace_line(iIgnoreEnt, const Float:fStart[3], const Float:fEnd[3], Float:vReturn[3]);
To

PHP Code:
#if !defined AMXMOD_BCOMPAT
native DispatchKeyValue(...);
#endif

#if !defined AMXMOD_BCOMPAT
native radius_damage(const Float:fExplodeAt[3], iDamageMultiplier, iRadiusMultiplier);
#endif

#if !defined AMXMOD_BCOMPAT
native trace_line(iIgnoreEnt, const Float:fStart[3], const Float:fEnd[3], Float:vReturn[3]);
#endif


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

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