Raised This Month: $ Target: $400
 0% 

Compile errors..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Marqioz
Member
Join Date: Apr 2008
Location: Denmark
Old 08-07-2008 , 08:46   Compile errors..
Reply With Quote #1

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
__________________
I am 52% addicted to Counterstrike. What about you?

+Karma if you helped
Marqioz is offline
Marqioz
Member
Join Date: Apr 2008
Location: Denmark
Old 08-07-2008 , 08:48   Re: Compile errors..
Reply With Quote #2

I wanna use the file for because i am hading to write those commands every time after mapchange on my server..
__________________
I am 52% addicted to Counterstrike. What about you?

+Karma if you helped
Marqioz is offline
JFeldon
Member
Join Date: Feb 2007
Location: United Kingdom
Old 08-07-2008 , 09:09   Re: Compile errors..
Reply With Quote #3

Put a , between each (argument?) Not quite sure on the proper terminology

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
__________________
+Karma if I helped! ;)

Last edited by JFeldon; 08-07-2008 at 09:12.
JFeldon is offline
Send a message via MSN to JFeldon
Marqioz
Member
Join Date: Apr 2008
Location: Denmark
Old 08-07-2008 , 09:14   Re: Compile errors..
Reply With Quote #4

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
__________________
I am 52% addicted to Counterstrike. What about you?

+Karma if you helped
Marqioz is offline
JFeldon
Member
Join Date: Feb 2007
Location: United Kingdom
Old 08-07-2008 , 09:18   Re: Compile errors..
Reply With Quote #5

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
mp_freezetime 0
mp_roundtime 2.5
__________________
+Karma if I helped! ;)
JFeldon is offline
Send a message via MSN to JFeldon
Marqioz
Member
Join Date: Apr 2008
Location: Denmark
Old 08-07-2008 , 09:19   Re: Compile errors..
Reply With Quote #6

Okay thanks

Karma for your help
__________________
I am 52% addicted to Counterstrike. What about you?

+Karma if you helped
Marqioz 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 05:37.


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