Raised This Month: $ Target: $400
 0% 

[PROBLEM SOLVED] [fcos] Arguement Type Mismatch Help Page


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 04-08-2006 , 16:01  
Reply With Quote #1

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 }
SubStream 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 16:34.


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