Raised This Month: $51 Target: $400
 12% 

[INC] Colors (1.0.5)


Post New Thread Reply   
 
Thread Tools Display Modes
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 02-14-2013 , 11:33   Re: [INC] Colors (1.0.5)
Reply With Quote #321

Quote:
Originally Posted by BomBaSK View Post
Sure,
but CPrintToChatAllEx does not have same function on both includes?
Its only for teamcolor using when im correct. If i confused srry -.-" .
Thx for help.
I don't think you even know the difference between CPrintToChat(All) and CPrintToChat(All)Ex.
If this is the case, then you're better off not using it until you figure out when you should use these two stocks.

CPrintToChat(All)Ex sets the author to a specific client so the {teamcolor} tag shows as the author's team. This means that it will have one extra parameter in the beginning (an integer) that specifies the author's client ID.

The errors given by the compiler should already tell you this, so please take some time to analyze your problem before posting in the thread.

And oh, look what I just found in the first post:
Quote:
Code:
/** 
 * Prints a message to all clients in the chat area. 
 * Supports color tags and teamcolor tag. 
 * 
 * @param author      Author index whose color will be used for teamcolor tag. 
 * @param szMessage   Message (formatting rules). 
 * @return              No return 
 *  
 * On error/Errors:   If the author is not connected an error will 
 *                    be thrown. 
 */ 
stock CPrintToChatAllEx(author, const String:szMessage[], any:...)
That couldn't possibly be telling me that there is an author parameter before the message, could it!!?
__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING
minimoney1 is offline
BomBaSK
Junior Member
Join Date: Mar 2011
Old 02-14-2013 , 13:52   Re: [INC] Colors (1.0.5)
Reply With Quote #322

Quote:
Originally Posted by minimoney1 View Post
I don't think you even know the difference between CPrintToChat(All) and CPrintToChat(All)Ex.
If this is the case, then you're better off not using it until you figure out when you should use these two stocks.

CPrintToChat(All)Ex sets the author to a specific client so the {teamcolor} tag shows as the author's team. This means that it will have one extra parameter in the beginning (an integer) that specifies the author's client ID.

The errors given by the compiler should already tell you this, so please take some time to analyze your problem before posting in the thread.

And oh, look what I just found in the first post:


That couldn't possibly be telling me that there is an author parameter before the message, could it!!?
Yeah i see now, and know how to use it in myself plugins, but in this plugin i cant use "author" team meaning. Cannot change hookevent ;).
Thanks for your help.
BomBaSK is offline
Sakretsos
Member
Join Date: Feb 2013
Old 02-21-2013 , 22:39   Re: [INC] Colors (1.0.5)
Reply With Quote #323

hello there i have a problem.. when smac colors works on translate files.. the quake sound announce don't change colors.. can someone help me ?
__________________

Hellenic SF Gameservers To Do List
Sakretsos is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 03-26-2013 , 10:24   Re: [INC] Colors (1.0.5)
Reply With Quote #324

Can you make this compatible for csgo too with protobuf?
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]
striker07 is offline
cREANy0
SourceMod Donor
Join Date: Jul 2012
Location: Germany
Old 03-26-2013 , 11:34   Re: [INC] Colors (1.0.5)
Reply With Quote #325

No, thats not possible.
You can not use the same colors like in CS:S
__________________

Last edited by cREANy0; 03-26-2013 at 11:34.
cREANy0 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 03-26-2013 , 11:42   Re: [INC] Colors (1.0.5)
Reply With Quote #326

Quote:
Originally Posted by striker07 View Post
Can you make this compatible for csgo too with protobuf?
https://forums.alliedmods.net/showpo...&postcount=311
__________________
asherkin is offline
cREANy0
SourceMod Donor
Join Date: Jul 2012
Location: Germany
Old 03-26-2013 , 12:29   Re: [INC] Colors (1.0.5)
Reply With Quote #327

Quote:
Originally Posted by asherkin View Post
Oh yea you can use that.
__________________
cREANy0 is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 03-26-2013 , 17:52   Re: [INC] Colors (1.0.5)
Reply With Quote #328

Very nice popoklopsi!

Tryed it myself too but it didnt work for me, and good job on the extra features hehe very nice

Edit:
Just tested it out with youre version but i'm still having the same errors as before.
Only using CPrintToChat:
Code:
SourcePawn Compiler 1.4.7
Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC
C:\Users\Tom\Desktop\Steam - servers\Compiled SourceMod\compiler\include\colors.inc(385) : error 017: undefined symbol "GetUserMessageType"
C:\Users\Tom\Desktop\Steam - servers\Compiled SourceMod\compiler\include\colors.inc(387) : error 017: undefined symbol "PbSetInt"
C:\Users\Tom\Desktop\Steam - servers\Compiled SourceMod\compiler\include\colors.inc(388) : error 017: undefined symbol "PbSetBool"
C:\Users\Tom\Desktop\Steam - servers\Compiled SourceMod\compiler\include\colors.inc(389) : error 017: undefined symbol "PbSetString"
C:\Users\Tom\Desktop\Steam - servers\Compiled SourceMod\compiler\include\colors.inc(390) : error 017: undefined symbol "PbAddString"
C:\Users\Tom\Desktop\Steam - servers\Compiled SourceMod\compiler\include\colors.inc(391) : error 017: undefined symbol "PbAddString"
C:\Users\Tom\Desktop\Steam - servers\Compiled SourceMod\compiler\include\colors.inc(392) : error 017: undefined symbol "PbAddString"
C:\Users\Tom\Desktop\Steam - servers\Compiled SourceMod\compiler\include\colors.inc(393) : error 017: undefined symbol "PbAddString"
 
8 Errors.
Compilation Time: 0.22 sec
Any thoughts? already redownloaded the latest sourcemod release version for its compiler and includes.
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]

Last edited by striker07; 03-27-2013 at 02:05.
striker07 is offline
Despirator
Senior Member
Join Date: Jun 2011
Location: Kazakhstan ->Shymkent
Old 03-27-2013 , 06:39   Re: [INC] Colors (1.0.5)
Reply With Quote #329

Quote:
Originally Posted by striker07 View Post
Very nice popoklopsi!

Tryed it myself too but it didnt work for me, and good job on the extra features hehe very nice

Edit:
Just tested it out with youre version but i'm still having the same errors as before.
Only using CPrintToChat:
Code:
SourcePawn Compiler 1.4.7
Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC
C:\Users\Tom\Desktop\Steam - servers\Compiled SourceMod\compiler\include\colors.inc(385) : error 017: undefined symbol "GetUserMessageType"
C:\Users\Tom\Desktop\Steam - servers\Compiled SourceMod\compiler\include\colors.inc(387) : error 017: undefined symbol "PbSetInt"
C:\Users\Tom\Desktop\Steam - servers\Compiled SourceMod\compiler\include\colors.inc(388) : error 017: undefined symbol "PbSetBool"
C:\Users\Tom\Desktop\Steam - servers\Compiled SourceMod\compiler\include\colors.inc(389) : error 017: undefined symbol "PbSetString"
C:\Users\Tom\Desktop\Steam - servers\Compiled SourceMod\compiler\include\colors.inc(390) : error 017: undefined symbol "PbAddString"
C:\Users\Tom\Desktop\Steam - servers\Compiled SourceMod\compiler\include\colors.inc(391) : error 017: undefined symbol "PbAddString"
C:\Users\Tom\Desktop\Steam - servers\Compiled SourceMod\compiler\include\colors.inc(392) : error 017: undefined symbol "PbAddString"
C:\Users\Tom\Desktop\Steam - servers\Compiled SourceMod\compiler\include\colors.inc(393) : error 017: undefined symbol "PbAddString"
 
8 Errors.
Compilation Time: 0.22 sec
Any thoughts? already redownloaded the latest sourcemod release version for its compiler and includes.
latest new stable branch is what you need to compile. Sourcemod 1.5.0 or higher

Last edited by Despirator; 03-27-2013 at 06:40.
Despirator is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 03-27-2013 , 13:47   Re: [INC] Colors (1.0.5)
Reply With Quote #330

thanks that fixed it,
I thought it as always safer to use the release version then the snapshots?
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]
striker07 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 01:27.


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