Quote:
|
Originally Posted by VEN
Replace all instances of "const s_cvarname[]" and "s_cvarname" which appears in function headers. Try to compile.
If there are still errors. Post compiler output and post lines of source code where errors happens.
|
OK I replaced those with s_cvarname[] and this is the full compiler message
Code:
Welcome to the AMX Mod X 1.70-300 Compiler.
Copyright (c) 1997-2005 ITB CompuPhase, AMX Mod X Team
Error: Invalid expression, assumed zero on line 909
Error: Invalid expression, assumed zero on line 924
2 Errors.
Could not locate output file C:\Documents and Settings\Owner\My Documents\CS\serverfinal1\cstrike\addons\amxmodx\scripting\compiled\fcos.amx (compilefailed).
Line 909
Code:
fn_fcosandlogentry ( gi_playerID, s_cvarname[], gf_valuefromplayer, gf_calfloatvalue )
Line 924
Code:
fn_showadmin ( gi_playerID, gi_playerID2, s_cvarname[], gf_valuefromplayer, gf_calfloatvalue )
Here is the full function that these lines were in:
Code:
public fn_cl_weather ( gi_playerID, s_cvarname[], const value[] ) // replaced const s_cvarname[] with s_cvarname[] as you said to do
{
gf_valuefromplayer = floatstr ( value )
gf_calfloatvalue = 1.0
if ( ! ( gf_valuefromplayer == gf_calfloatvalue ) )
{
fn_fcosandlogentry ( gi_playerID, s_cvarname[], gf_valuefromplayer, gf_calfloatvalue ) // replaced s_cvarname with s_cvarname[] as you said to do
get_players ( gi_players2, gi_playercnt2, "ch" )
for ( gi_playernum2 = 0; gi_playernum2 < gi_playercnt2; gi_playernum2++ )
{
gi_playerID2 = gi_players2[gi_playernum2]
if ( ! ( is_user_admin ( gi_playerID2 ) ) )
{
return PLUGIN_HANDLED
}
else
{
fn_showadmin ( gi_playerID, gi_playerID2, s_cvarname[], gf_valuefromplayer, gf_calfloatvalue ) // replaced s_cvarname with s_cvarname[] as you said to do
}
}
}
else
{
return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}