SA-MP Forums Archive
Hmm i have a COLOR_"Color" Probleme ._. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Hmm i have a COLOR_"Color" Probleme ._. (/showthread.php?tid=149862)



Hmm i have a COLOR_"Color" Probleme ._. - MrEnd - 23.05.2010

yo all
I trying to make mine first GM

I maked mine first GM from the start :P
so i tryed to fix a cmd
Код:
  if(!strcmp(cmdtext,"/rules",true))
	{
	SendClientMessage(playerid, COLOR_GREEN,"****** Server Rules ******");
	SendClientMessage(playerid, COLOR_RED,"Don't Cheat/Hack");
	SendClientMessage(playerid, COLOR_RED,"Don't Spam!");
	SendClientMessage(playerid, COLOR_RED,"No Flame please!");
	SendClientMessage(playerid, COLOR_RED,"No Spawnkilling");
	SendClientMessage(playerid, COLOR_RED,"No Team Killing/Attack");
	SendClientMessage(playerid, COLOR_RED,"No Team Jacking");
  return 1;
	}
and i have added

Код:
#define COLOR_GREEN 0x33AA33AA //Green
#define COLOR_RED 0xFF0000AA //Red
what do i need?


Re: Hmm i have a COLOR_"Color" Probleme ._. - DarkPower - 23.05.2010

What is corectly your problem?


Re: Hmm i have a COLOR_"Color" Probleme ._. - Z-R0 - 23.05.2010

I copied and pasted his code into pawno and it seems he did not correctly indent lol
thats the only problem i see


Re: Hmm i have a COLOR_"Color" Probleme ._. - ViruZZzZ_ChiLLL - 24.05.2010

Use my include of colors :
Link : http://solidfiles.com/d/599/

Usage :
pawn Код:
#include <colors>


SendClientMessage(playerid, Red, "Message");
and your all done.

Basic colors are : Red, Blue, Green, Yellow, etc...


Re: Hmm i have a COLOR_"Color" Probleme ._. - MrEnd - 24.05.2010

hmm i think i need this:
Код:
#include <colors>
but if i add that i get this:
Код:
D:\Rockstar Games\SA-MP Server\gamemodes\Esco.pwn(13) : fatal error 100: cannot read from file: "colors"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: Hmm i have a COLOR_"Color" Probleme ._. - ViruZZzZ_ChiLLL - 24.05.2010

Quote:
Originally Posted by [MG
Esco ]
hmm i think i need this:
Код:
#include <colors>
but if i add that i get this:
Код:
D:\Rockstar Games\SA-MP Server\gamemodes\Esco.pwn(13) : fatal error 100: cannot read from file: "colors"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Did you downloaded my inc?
Is it in a notepad?
Is it saved as .inc?
Did you put it in SA-MP Server/pawno/include?


Re: Hmm i have a COLOR_"Color" Probleme ._. - MrEnd - 24.05.2010

ops no XD

EDIT:

Fixed and
Код:
#include <colors>
works
but
Код:
SendClientMessage(playerid, COLOR_RED,"Text");
Still dont working


Re: Hmm i have a COLOR_"Color" Probleme ._. - Assyria - 24.05.2010

Maybe it counts the ,"space"COLOR_GREEN there? Sounds pretty ridiculous but maybe it can be?

try SendClientMessage(playerid,COLOR_RED,"Text");


Re: Hmm i have a COLOR_"Color" Probleme ._. - MrEnd - 24.05.2010

hmm lol

Код:
SendClientMessage(playerid,RED,"Text");
SendClientMessage(playerid,red,"Text");
dident work but

Код:
SendClientMessage(playerid,Red,"Text");
Worked XD