Hmm i have a COLOR_"Color" Probleme ._.
#1

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?
Reply
#2

What is corectly your problem?
Reply
#3

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

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...
Reply
#5

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.
Reply
#6

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?
Reply
#7

ops no XD

EDIT:

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

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

try SendClientMessage(playerid,COLOR_RED,"Text");
Reply
#9

hmm lol

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)