[PROBLEM SOLVED] [fcos] Arguement Type Mismatch Help Page
This help page is directly related to my plugin [fcos]. If you need to view the full plugin script go there and download the .sma file.
I am trying to shorten the code for my plugin fcos by forwarding parameters to fn_fcosandlogentry and fn_showadmin. When I compile I get this Code:
Welcome to the AMX Mod X 1.70-300 Compiler.Code:
Code:
Code:
Code:
Code:
Edit: This problem has been solved. Thank you VEN for the help on this. |
Try both ways.
Code:
Code:
|
VEN maybe I should have included that fn_cl_weather is the result function of query_client_cvar for cl_weather so s_cvarname already has a value and does not need to be defined.
Also I've tried s_cvarname[] instead of s_cvarname when forwarding the parameter s_cvarname and it says "Invalid expression, assumed zero on line ...." and i've tried const cvarname[] Same result. To view the full code for the fcos plugin to see what I am talking about go to http://forums.alliedmods.net/showthread.php?t=25927 The plugin is too large to post in this forum. You have to look at the actual .sma to see the whole thing. |
Replace all instances of "const s_cvarname[]" and "s_cvarname" which appears in function headers with "s_cvarname[]" and try to compile again.
If there are still errors. Post compiler output and post lines of source code where errors appears. |
Quote:
Code:
Welcome to the AMX Mod X 1.70-300 Compiler.Code:
Code:
Code:
|
No, when i said "function headers" i mean only where function body begins.
Example: Code:
|
Quote:
Code:
|
I think i got where is the problem.
Do not use global variables in function headers. |
VEN the variable that won't pass through to the other functions is s_cvarname... that isn't a global variable so that can't be the problem.
|
Attach the whole source. If it's to big, archive it. I'll see what happens.
|
| All times are GMT -4. The time now is 16:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.