AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [INC] Multi Colors (https://forums.alliedmods.net/showthread.php?t=247770)

Toastbrot_290 06-09-2015 07:21

Re: [INC] Multi Colors - 2.0.0
 
Why do you require new syntax within your include? Keep it compatible to old syntax. I don't think stuff like that should be set within an include file. Devs should decide on their own.

Bara 06-09-2015 07:30

Re: [INC] Multi Colors - 2.0.0
 
1.7 is stable with the new syntax... so why not. But you can use the old version ( https://github.com/Bara20/Multi-Colo...cafb33c95aabe2 ).

And I don't enforce the new syntax, only in example plugin ( https://github.com/Bara20/Multi-Colo...ors_example.sp ). You need an 1.7+ compiler for this. Please read the code correct.

Toastbrot_290 06-09-2015 10:02

Re: [INC] Multi Colors
 
Nvm i used a version before commit cf64cf5 this morning.

iGANGNAM 06-19-2015 05:35

Re: [INC] Multi Colors
 
Can you make custom-chatcolors plugin with this include?

Bara 06-19-2015 16:32

Re: [INC] Multi Colors
 
Not from my side, sry.

PeEzZ 10-10-2015 04:56

Re: [INC] Multi Colors
 
Idea: color HEX code in chat message.
Code:

CPrintToChatAll("{FF0000}This is an {00FF00}message.");
Server Say: "This is an message."

KissLick 10-10-2015 07:25

Re: [INC] Multi Colors
 
Quote:

Originally Posted by PeEzZ (Post 2351508)
Idea: color HEX code in chat message.
Code:

CPrintToChatAll("{FF0000}This is an {00FF00}message.");
Server Say: "This is an message."

This cannot work in CS:GO.

Bara 10-10-2015 08:58

Re: [INC] Multi Colors
 
Quote:

Originally Posted by KissLick (Post 2351531)
This cannot work in CS:GO.

But on "source 2009".

404UserNotFound 10-13-2015 18:51

Re: [INC] Multi Colors
 
I like the premise of this and I'm thinking of using it in a plugin I'm working on at the moment (an update of a rather old plugin) but I'm a bit confused about some things:

1. Being that Multi Colors uses the new decl's, would I be able to use this in a plugin that does not use the new decl's? I am using a 1.7 compiler, but I'm not sure if new syntax in an include mixes well with old syntax in a plugin.

2. With this, do I not have to do any form of GetGameEngine checks before any instances of like, CPrintToChat? The include does it on the fly when a message is printed? So like, if I send a message that uses something like "{community}Test Message" (which would look like TEST MESSAGE), it would automatically convert it to use whatever CS:GO uses and display the colors properly?

xXDeathreusXx 10-22-2015 14:33

Re: [INC] Multi Colors
 
Quote:

Originally Posted by abrandnewday (Post 2352810)
I like the premise of this and I'm thinking of using it in a plugin I'm working on at the moment (an update of a rather old plugin) but I'm a bit confused about some things:

1. Being that Multi Colors uses the new decl's, would I be able to use this in a plugin that does not use the new decl's? I am using a 1.7 compiler, but I'm not sure if new syntax in an include mixes well with old syntax in a plugin.

2. With this, do I not have to do any form of GetGameEngine checks before any instances of like, CPrintToChat? The include does it on the fly when a message is printed? So like, if I send a message that uses something like "{community}Test Message" (which would look like TEST MESSAGE), it would automatically convert it to use whatever CS:GO uses and display the colors properly?

You can have new syntax and old syntax mishmashed in a jumble of code unreadable to the human, but the computer reads it all as the same thing

As long as you don't have "#pragma newdecls required" in the plugin or the include, syntax is not enforced and it doesn't care

As for the second one, it does do game engine checks when the function is called, but if it converts it appropriately I'm not sure


All times are GMT -4. The time now is 01:25.

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