Compile errors..
Hey
I am getting these errors when im trying to compile a simple .sma file. What shall i do..? /home/groups/amxmodx/tmp3/phpzDNL9G.sma(15) : error 001: expected token: ";", but found "(" /home/groups/amxmodx/tmp3/phpzDNL9G.sma(15) : error 001: expected token: ")", but found "-string-" /home/groups/amxmodx/tmp3/phpzDNL9G.sma(15) : error 029: invalid expression, assumed zero /home/groups/amxmodx/tmp3/phpzDNL9G.sma(15) : fatal error 107: too many error messages on one line --------------------------------------------------------------- /* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "hidenseek_commands" #define VERSION "1.0" #define AUTHOR "Markus" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) new pcvar("sv_airaccelerate" "100") new pcvar("mp_roundtime" "2.5") new pcvar("mp_freezetime" "0") } ----------------------------------------------------- I cant Manage Attachments because my Antivirus progam is disabling it :cry: |
Re: Compile errors..
I wanna use the file for because i am hading to write those commands every time after mapchange on my server..
|
Re: Compile errors..
Put a , between each (argument?) Not quite sure on the proper terminology :P
E.g. new pcvar("sv_airaccelerate","100") Also if you say that you have to keep writing them on mapchange, put them in "server.cfg" which is loaded on map change. Then it'll do it for you. So just slip sv_airaccelerate 100 somewhere in the .CFG and you're good to go. make sure that it isn't already in the .CFG, if it is then just change the number |
Re: Compile errors..
Now i am getting these errors:
/home/groups/amxmodx/tmp3/phpVAB81I.sma(15) : error 001: expected token: ";", but found "(" /home/groups/amxmodx/tmp3/phpVAB81I.sma(15 -- 16) : warning 215: expression has no effect /home/groups/amxmodx/tmp3/phpVAB81I.sma(16) : error 021: symbol already defined: "pcvar" /home/groups/amxmodx/tmp3/phpVAB81I.sma(16 -- 17) : warning 215: expression has no effect /home/groups/amxmodx/tmp3/phpVAB81I.sma(17) : error 021: symbol already defined: "pcvar" /home/groups/amxmodx/tmp3/phpVAB81I.sma(17) : fatal error 107: too many error messages on one line |
Re: Compile errors..
Oops. Sorry I'm screwing up a bit :S Tired lol
Put them into your server.cfg, then they execute whenever you change map. You won't need the plugin. Add this as the end of server.cfg Code:
sv_airaccelerate 100 |
Re: Compile errors..
Okay thanks :D
Karma for your help :D |
| All times are GMT -4. The time now is 05:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.