i have now more errors in my compiling
here what i wrote:
PHP Code:
#define PLUGIN_VERSION "0.1"
#define YELLOW "\x01"
#define LIGHTGREEN "\x03"
#define GREEN "\x04"
#define BLACKGREEN "\x05"
#include <sourcemod>
static Handle:Convar;
static Handle:Conff;
public Plugin:myinfo =
{
name = "Ben-Command",
author = "Ben-Yaa",
description = "Server commands manager",
version = PLUGIN_VERSION,
url = "http://www.RooT.co.il"
};
public OnPluginStart()
{
RegAdminCmd("sm_rr", Command_BCR, ADMFLAG_GENERIC);
RegAdminCmd("sm_teamb", Command_BCTB, ADMFLAG_GENERIC, "mp_autoteambalance");
RegAdminCmd("sm_ff", Command_BCFF, ADMFLAG_GENERIC, "sv_friendlyfire");
Convar = FindConVar("mp_autoteambalance");
Conff = FindConVar("sv_friendlyfire");
CreateConVar( "sm_bcomm", "1" );
CreateConVar( "bcomm_version", PLUGIN_VERSION, "CVAR Description here", FCVAR_PLUGIN | FCVAR_SPONLY | FCVAR_REPLICATED | FCVAR_NOTIFY );
}
public Action:Command_BCR(client, args)
{
ServerCommand("mp_restartgame 1")
PrintToChatAll("\x01[\x03Ben-Command\x01] Admin \x04%N \x01has restart the round!", client);
return Plugin_Handled;
}
public Action:Command_BCTB(client, args)
{
new String:Arg[32];
GetCmdArg(1, Arg, sizeof(Arg));
PrintToChatAll("\x01[\x03Ben-Command\x01] Admin \x04%N \x01has changed \x05mp_autoteambalance \x01to \x03%s\x01!", client, Arg);
SetConVarInt(Convar, StringToInt(Arg));
return Plugin_Handled;
}
public Action:Command_BCFF(client, args)
{
new String:FF[32];
GetCmdArg(1, FF, sizeof(FF));
PrintToChatAll("\x01[\x03Ben-Command\x01] Admin \x04%N \x01has changed \x05sv_friendlyfire \x01to \x03%s\x01!", client, FF);
SetConVarInt(Conff, StringToInt(FF));
return Plugin_Handled;
}
and here the errors:
Quote:
/groups/sourcemod/upload_tmp/text6ErG6C.sp(29) : warning 217: loose indentation
/groups/sourcemod/upload_tmp/text6ErG6C.sp(32) : warning 217: loose indentation
/groups/sourcemod/upload_tmp/text6ErG6C.sp(47) : warning 217: loose indentation
/groups/sourcemod/upload_tmp/text6ErG6C.sp(49) : warning 217: loose indentation
/groups/sourcemod/upload_tmp/text6ErG6C.sp(51) : warning 217: loose indentation
/groups/sourcemod/upload_tmp/text6ErG6C.sp(59) : warning 217: loose indentation
/groups/sourcemod/upload_tmp/text6ErG6C.sp(61) : warning 217: loose indentation
/groups/sourcemod/upload_tmp/text6ErG6C.sp(63) : warning 217: loose indentation
Header size: 2160 bytes
Code size: 2116 bytes
Data size: 1680 bytes
Stack/heap size: 16384 bytes; Total requirements: 22340 bytes
8 Warnings.
|
what i wrong NOW?
Thx for helping.