Hey, I'm new to this type of stuff and I don't really understand what to do.
So what I'm trying to do is create custom commands and when executed printing a message to chat. When compiling on
https://www.sourcemod.net/compiler.php I get this error:
Code:
/home/groups/sourcemod/upload_tmp/phpT5ft37.sp(2) : fatal error 182: cannot read from file: "colors"
Compilation aborted.
1 Error.
I understand what the problem is, although I don't understand how to fix it.
The code I'm trying to compile:
Code:
#include <sourcemod>
#include <colors>
public OnPluginStart()
{
RegConsoleCmd("sm_discord", DiscordAd);
RegConsoleCmd("sm_sourcebans", SourceBansAd);
}
public Action:DiscordAd(client, args)
{
CPrintToChatAll("{yellow}Kahvitauko {yellow}>>{default} {grey}discord.me/kahvitauko);
}
public Action:SourceBansAd(client, args)
{
CPrintToChatAll("{yellow}Kahvitauko {yellow}>>{default} {grey}Tulossa!:)");
}