AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   sth about amxx_ejl_missiles.sma (https://forums.alliedmods.net/showthread.php?t=6213)

breaddawson 09-24-2004 13:55

sth about amxx_ejl_missiles.sma
 
yes,i know the thread about this plugin had been moved to Trash
i use the Search button and found it there

but ,i just want to use this plugin with AMX X 0.2
so i pick it up,then compile it with the new compiler the 0.2 provide

then serveral errors occurs

it told me

Code:

///// amxx_ejl_missiles.sma
// D:\AMX X MOD\script\amxx_ejl_missiles.sma(276) : error 021: symbol already de
fined: "cstrike_running"
// D:\AMX X MOD\script\amxx_ejl_missiles.sma(767) : error 076: syntax error in t
he expression, or invalid function call
// D:\AMX X MOD\script\amxx_ejl_missiles.sma(1772) : error 076: syntax error in
the expression, or invalid function call
// D:\AMX X MOD\script\amxx_ejl_missiles.sma(1966) : error 076: syntax error in
the expression, or invalid function call
// D:\AMX X MOD\script\amxx_ejl_missiles.sma(1985) : error 076: syntax error in
the expression, or invalid function call
// D:\AMX X MOD\script\amxx_ejl_missiles.sma(2500) : error 076: syntax error in
the expression, or invalid function call
// D:\AMX X MOD\script\amxx_ejl_missiles.sma(2639) : error 029: invalid expressi
on, assumed zero
//
// 7 Errors.
// Could not locate output file compiled\amxx_ejl_missiles.amx (compile failed).

i view those lines and found all the erros are about the symbol
"cstike_running"

this seems to show us if the mod is counter-strike
and i found another line in the .sma file

Code:

cstrike_running = equal(mod_name,"cstrike") ? true : false
this shows how the symbol defined

but the question is: why does the erros occur?

has the symbol already been defined in amxmodx_mm.dll??
or in the *.inc files

i searched "cstrike_running" in the inc files which were inclued by the sma file
but nothing was found

i do try to contact the author

but on his website,it wrote

Quote:

LUDWIGS PLUGINS: For Half-Life with AMXMOD and ADMINMOD



Announcement: Most of you know that I retired from making and supporting plugins some time ago. Additionally now I have decided to no longer provide the download archive of my plugins for a game I now HATE thanks to Steam. All Half-Life related files have been deleted from this server. Please do not ask me for them and NEVER EVER ask me to update to be compatible with Steam any plugins I wrote which you do happen to have. I am done, do not bother me anymore. It's over. Bye bye.


so,will u who knows how to fix these problems help me???

thx!!!

Johnny got his gun 09-24-2004 17:31

cstrike_running() is a stock function defined in amxmisc.inc. Maybe it's interfering. Try renaming the variable/function in the plugin.

breaddawson 09-24-2004 22:16

:wink:

thank u ,jghg
:oops: i miss to find it in amxmisc.inc
so sorry for this

i changed it to cs_running
and the compiling is good

i'll then test it on the server then

ol 09-24-2004 22:35

hi,good job

兄弟做的好啊


All times are GMT -4. The time now is 17:12.

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