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

[INC] Colors (1.0.5)


Post New Thread Reply   
 
Thread Tools Display Modes
Karotte
Member
Join Date: Feb 2014
Old 03-03-2014 , 20:21   Re: [INC] Colors (1.0.5)
Reply With Quote #381

i dont know if i installed them both correctly...

i dont know where i can use "colors.inc" and "morecolors.inc" (http://forums.alliedmods.net/showthread.php?t=185016) are they for ALL chatcommands? for translations?

i put both of them in sourcemod/scripting/include
and added in colors.inc "#include <colors> " and in morecolors. inc "#include <morecolors>" or missunderstood it ?

"5. How to install it?

Put colors.inc into sourcemod/scripting/include folder.
Add this into the code:
PHP Code:
#include <colors> "

For example: i wanted to give my "anticamp.phrases.txt" the color "cyan". So i put:

{4}Player:{5} {1}{6} is camping with{7} {2}{8} @{9} {3}

-> {4}Player:{5} {1}{6} {cyan}is camping with{7} {2}{8} @{9} {3}

but it doesnt work what did i wrong or is it even possible?

Last edited by Karotte; 03-03-2014 at 20:21.
Karotte is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 03-03-2014 , 20:39   Re: [INC] Colors (1.0.5)
Reply With Quote #382

@Karrote

Post your entire code.
__________________
ddhoward is offline
Karotte
Member
Join Date: Feb 2014
Old 03-03-2014 , 20:51   Re: [INC] Colors (1.0.5)
Reply With Quote #383

okay dude, i just was braindead... i have to put "include colors" in my .sp file from any plugin right?
so i put "#include <colors>" in my anticamp.sp but then i couldnt compile it.

/groups/sourcemod/upload_tmp/textkiKf13.sp(21) : fatal error 120: cannot read from file: "morecolors.inc"

and if i wanna use "morecolors", do i have to put "#include <colors>" AND "#include <morecolors>" ? or is "morecolors" an own "plugin"
?

Last edited by Karotte; 03-03-2014 at 20:52.
Karotte is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 03-03-2014 , 20:59   Re: [INC] Colors (1.0.5)
Reply With Quote #384

Neither are plugins. They are both includes, and are both completely independent from each other.

Download morecolors.inc and place it in your includes folder. Place #include <morecolors> at the top of your .sp file. Then replace all applicable text-printing functions with their morecolors equivalent. Compile, upload new smx to server, load the new smx.
__________________

Last edited by ddhoward; 03-03-2014 at 21:00.
ddhoward is offline
Karotte
Member
Join Date: Feb 2014
Old 03-03-2014 , 21:07   Re: [INC] Colors (1.0.5)
Reply With Quote #385

is it important to change in .sp file something with Cprinttochat? or doesnt that matter?

EDIT: /home/groups/sourcemod/upload_tmp/phpmJyz2w.sp(19) : fatal error 120: cannot read from file: "morecolors"

#include <morecolors>
#include <sourcemod>
#include <sdktools>

EDIT2: in my anticamp.sp is nothing like "printtochat"... where i can edit it to "cprinttochat"

Last edited by Karotte; 03-03-2014 at 21:13.
Karotte is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 03-03-2014 , 21:14   Re: [INC] Colors (1.0.5)
Reply With Quote #386

You still don't have morecolors.inc in the right folder. Put it with the rest of the .inc files.
__________________
ddhoward is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 03-03-2014 , 21:15   Re: [INC] Colors (1.0.5)
Reply With Quote #387

Quote:
Originally Posted by Karotte View Post
EDIT2: in my anticamp.sp is nothing like "printtochat"... where i can edit it to "cprinttochat"
Post anticamp.sp.
__________________
ddhoward is offline
Karotte
Member
Join Date: Feb 2014
Old 03-03-2014 , 21:18   Re: [INC] Colors (1.0.5)
Reply With Quote #388

Here
Attached Files
File Type: sp Get Plugin or Get Source (anticamp.sp - 228 views - 15.6 KB)
Karotte is offline
Karotte
Member
Join Date: Feb 2014
Old 03-03-2014 , 21:19   Re: [INC] Colors (1.0.5)
Reply With Quote #389

Quote:
Originally Posted by ddhoward View Post
You still don't have morecolors.inc in the right folder. Put it with the rest of the .inc files.
cstrike/addons/sourcemod/scripting/include

morecolors.inc

EDIT: do i have to put #include <morecolors> above the other 2 includes, or at the top with only shit between include morecolors and include sdk... like " * * * * * * *blabla"

Last edited by Karotte; 03-03-2014 at 21:22.
Karotte is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 03-03-2014 , 21:31   Re: [INC] Colors (1.0.5)
Reply With Quote #390

Put #include <morecolors> with the other #include lines. Order doesn't matter.

To clarify, you need to download it and place it on your computer, on the computer that is doing the compiling, in the folder that the compiler gets the includes from. The INC does NOT NOT NOT need to be on the server.
__________________

Last edited by ddhoward; 03-03-2014 at 21:31.
ddhoward 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 13:45.


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