Raised This Month: $ Target: $400
 0% 

some errors while compiling


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ben_yaa
Member
Join Date: Feb 2011
Old 02-10-2011 , 14:25   Re: some errors while compiling
Reply With Quote #1

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_BCRADMFLAG_GENERIC);
    
RegAdminCmd("sm_teamb"Command_BCTBADMFLAG_GENERIC"mp_autoteambalance");
    
RegAdminCmd("sm_ff"Command_BCFFADMFLAG_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(clientargs)
{
    
ServerCommand("mp_restartgame 1")
    
PrintToChatAll("\x01[\x03Ben-Command\x01] Admin \x04%N \x01has restart the round!"client);
    return 
Plugin_Handled;
}  

public 
Action:Command_BCTB(clientargs)
{
    new 
String:Arg[32];
    
GetCmdArg(1Argsizeof(Arg));
    
PrintToChatAll("\x01[\x03Ben-Command\x01] Admin \x04%N \x01has changed \x05mp_autoteambalance \x01to \x03%s\x01!"clientArg);
        
 
SetConVarInt(ConvarStringToInt(Arg));
    
    return 
Plugin_Handled;

}

public 
Action:Command_BCFF(clientargs)
{
    new 
String:FF[32];
    
GetCmdArg(1FFsizeof(FF));
    
PrintToChatAll("\x01[\x03Ben-Command\x01] Admin \x04%N \x01has changed \x05sv_friendlyfire \x01to \x03%s\x01!"clientFF);
        
 
SetConVarInt(ConffStringToInt(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.

Last edited by ben_yaa; 02-10-2011 at 14:30.
ben_yaa is offline
Cookies.net
Senior Member
Join Date: Jan 2011
Old 02-10-2011 , 16:22   Re: some errors while compiling
Reply With Quote #2

those aren't errors, just warnings, scroll down to 6. in the first post in this thread http://forums.alliedmods.net/showthread.php?t=94187 it'll tell you about it
Cookies.net is offline
ben_yaa
Member
Join Date: Feb 2011
Old 02-10-2011 , 17:17   Re: some errors while compiling
Reply With Quote #3

ok thx!
now just the popup and the "Server cvar 'mp_autoteambalance' changed to 1" not appears
ben_yaa is offline
ben_yaa
Member
Join Date: Feb 2011
Old 02-10-2011 , 17:18   Re: some errors while compiling
Reply With Quote #4

ok thx!
now just the popup and the "Server cvar 'mp_autoteambalance' changed to 1" not appears
ben_yaa is offline
ben_yaa
Member
Join Date: Feb 2011
Old 02-10-2011 , 18:46   Re: some errors while compiling
Reply With Quote #5

hmm anybody knows what those two errors mean?
Quote:
/groups/sourcemod/upload_tmp/textb0vWSk.sp(333) : error 055: start of function body without function header
/groups/sourcemod/upload_tmp/textb0vWSk.sp(334) : error 021: symbol already defined: "PrintToChatAll"
ben_yaa is offline
ben_yaa
Member
Join Date: Feb 2011
Old 02-10-2011 , 18:49   Re: some errors while compiling
Reply With Quote #6

nvm i noticed myself
ben_yaa is offline
ben_yaa
Member
Join Date: Feb 2011
Old 02-10-2011 , 19:26   Re: some errors while compiling
Reply With Quote #7

But how can i build a popup menu for credits and how can i "hide" the "Server cvar 'mp_autoteambalance' changed to 1" for example??
and how can i make a command to delay the seconds i choose and then happen?
thx you all!!!!!
Love this community!!

Last edited by ben_yaa; 02-10-2011 at 19:49.
ben_yaa is offline
Monkeys
Veteran Member
Join Date: Jan 2010
Old 02-10-2011 , 21:55   Re: some errors while compiling
Reply With Quote #8

You can hide it by hooking usermessages. That wouldn't be easy to do as a beginner, though.

Popup menu how?
If you want an actual menu and not just text, look at this wiki page:
http://wiki.alliedmods.net/Menu_API_%28SourceMod%29

If you want to know how to use timers, use this wiki page:
http://wiki.alliedmods.net/Timers_%2...d_Scripting%29


And, please, do search.
__________________
Get a lid on that zombie,
he's never gonna be alri-i-ight.
Oooh get a lid on that zombie,
or he's gonna feed all night.
Monkeys is offline
ben_yaa
Member
Join Date: Feb 2011
Old 02-11-2011 , 02:21   Re: some errors while compiling
Reply With Quote #9

what do you mean?
and can you give me expamples for popup menu and to timer that making a PrintToChatAll
appears a second after the convar(example: autoteambalance)?
and what is this hooking messages?
ben_yaa is offline
ben_yaa
Member
Join Date: Feb 2011
Old 02-11-2011 , 03:26   Re: some errors while compiling
Reply With Quote #10

and can you give me an example for how to that if someone do !teamb 5(mp_autoteambalance 5) so it not write "[Ben-Command] mp_autoteambalance changed to 5!"...?
ben_yaa 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 14:09.


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