Raised This Month: $ Target: $400
 0% 

I get many errors when trying to compile


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
RaYnE21
Junior Member
Join Date: Jan 2006
Old 03-03-2006 , 19:13   I get many errors when trying to compile
Reply With Quote #1

I need some help with my first plugin anything is appreciated even suggestions it's all the same to me
Below is the errors I get when I try to compile
Code:
/home/users/amxmodx/tmp3/phpJB2cGm.sma(57) : error 037: invalid string (possibly non-terminated string)
/home/users/amxmodx/tmp3/phpJB2cGm.sma(84) : warning 209: function "cal" should return a value
/home/users/amxmodx/tmp3/phpJB2cGm.sma(86) : error 055: start of function body without function header
/home/users/amxmodx/tmp3/phpJB2cGm.sma(88) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(90) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(93) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(96) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(99) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(102) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(105) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(108) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(111) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(114) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(117) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(120) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(123) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(126) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(129) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(132) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(136) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(141) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(144) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(147) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(150) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(153) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(156) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpJB2cGm.sma(159) : error 010: invalid function or declaration

Compilation aborted.
26 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/phpJB2cGm.amx (compile failed).
This is my Script I'm not really sure what is wrong with it any help is appreciated
Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "True Cal Config"
#define VERSION "1.0"
#define AUTHOR "RaYnE"


public plugin_init() {
	register_plugin("TrueCalCONFIG","1.0","RaYnE")
	register_concmd("amx_tcal","calcz",ADMIN_SLAY,"Cal_CZ Config")
}

public cal(id,level,cid)
{
	if(!cmd_access(id,level,cid,1))
	{
		return PLUGIN_HANDLED
	}
	
	server_cmd("mp_autokick 0")
	server_cmd("mp_autocrosshair 0")
	server_cmd("mp_autoteambalance 0")
	server_cmd("mp_buytime .34")
	server_cmd("mp_consistency 1")
	server_cmd("mp_c4timer 35")
	server_cmd("mp_fadetoblack 0")
	server_cmd("mp_falldamage 1")
	server_cmd("mp_flashlight 1")
	server_cmd("mp_forcechasecam 0")
	server_cmd("mp_forcecamera 2")
	server_cmd("mp_footsteps 1")
	server_cmd("mp_freezetime 12")
	server_cmd("mp_friendlyfire 1")
	server_cmd("mp_hostagepenalty 0")
	server_cmd("mp_limitteams 6")
	server_cmd("mp_logecho 1")
	server_cmd("mp_logfile 1")
	server_cmd("mp_logmessages 1")
	server_cmd("mp_maxrounds 15")
	server_cmd("mp_playerid 0")
	server_cmd("mp_roundtime 2")
	server_cmd("mp_timelimit 999")
	server_cmd("mp_tkpunish 0")
	server_cmd("mp_startmoney 800")

	server_cmd("sv_lagpush 0")
	server_cmd("sv_unlagsamples 1")
	server_cmd("sv_voiceenable 1")
	server_cmd("sv_maxunlag .5")
	server_cmd("sv_aim 0")
	server_cmd("sv_airaccelerate 10")
	server_cmd("sv_airmove 1")
	server_cmd("sv_allowdownload 1")
	server_cmd("sv_allowupload 1
	server_cmd("sv_alltalk 0")
	server_cmd("sv_proxies 1")
	server_cmd("sv_cheats 0")
	server_cmd("sv_clienttrace 1.0")
	server_cmd("sv_clipmode 0")
	server_cmd("sv_contact [email protected]")
	server_cmd("sv_friction 4")
	server_cmd("sv_gravity 800")
	server_cmd("sv_maxrate 20000")
	server_cmd("sv_maxspeed 320")
	server_cmd("sv_minrate 0")
	server_cmd("sv_maxupdaterate 100")
	server_cmd("sv_maxcmdrate 100")
	server_cmd("sv_send_logos 1")
	server_cmd("sv_send_resources 1")
	server_cmd("sv_stepsize 18")
	server_cmd("sv_stopspeed 75")
	server_cmd("sv_timeout 65")
	server_cmd("sv_wateraccelerate 10")

	server_cmd("allow_spectators 2")
	server_cmd("decalfrequency 60")
	server_cmd("edgefriction 2")
	server_cmd("host_framerate 0")
	server_cmd("log on")
	server_cmd("pausable 0")
}

	{
	client_print(1,print_chat,"-==-")
	return PLUGIN_HANDLED{
	client_print(1,print_chat,"-===-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-====-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-==G==-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-==GE==-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-==GET==-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-==GET R==-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-==GET RE==-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-==GET READ==-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-==GET READY==-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-=Team.PK=-")
	return PLUGIN_HANDLED
{
	client_print(0,print_chat,"-=Team.PK=-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-=Team.PK=-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-=Team.PK=-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-=Restart #1=-")
	return PLUGIN_HANDLED
	server_cmd("sv_restart 1")
	client_print(0,print_chat,"-=Restart #2=-")
	return PLUGIN_HANDLED
	server_cmd("sv_restart 1")
	{
	client_print(0,print_chat,"-=Restart #3=-")
	return PLUGIN_HANDLED
	server_cmd("sv_restart 1")
	server_cmd("amx_off")
	{
	client_print(0,print_chat,"-=L=-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-=LI=-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-=LIV=-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-=LIVE=-")
	return PLUGIN_HANDLED
		{
	client_print(0,print_chat,"-=L=-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-=LI=-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-=LIV=-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-=LIVE=-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-=G=-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-=GO=-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"=G=")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"GO")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"=G=")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-=G=-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"=GO=")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"G")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"=GO=")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"-=GO=-")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"HAVE FUN!")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"RECORD DEMOS!!")
	return PLUGIN_HANDLED
	{
	client_print(0,print_chat,"Made By RaYnE BITCHES!!")
	return PLUGIN_HANDLED
This is specially made for my clan you can edit if you want just put something in there that I made it. And I know there are alot of plugins like this the only difference between them and this is this is the TRUE cal cfg from cal website (this is from the Cal-O condition zero section)
RaYnE21 is offline
 


Thread Tools
Display Modes

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 20:15.


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