color define help
#1

i got these on my script
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x3A47DEFF
#define COLOR_TAN 0xBDB76BAA
#define COLOR_PURPLE 0x800080AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_BLACK 0x00000000
#define COLOR_DARKGREY 0x696969FF

Everytime i try to use one I get this
C:\Users\Michael C\Desktop\4-21-2012 project\gamemodes\NewRoleplay.pwn(289) : error 017: undefined symbol "COLOR_YELLOW"

im new to scripting
Reply
#2

Quote:
Originally Posted by Michael_Cuellar
Посмотреть сообщение
i got these on my script
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x3A47DEFF
#define COLOR_TAN 0xBDB76BAA
#define COLOR_PURPLE 0x800080AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_BLACK 0x00000000
#define COLOR_DARKGREY 0x696969FF

Everytime i try to use one I get this
C:\Users\Michael C\Desktop\4-21-2012 project\gamemodes\NewRoleplay.pwn(289) : error 017: undefined symbol "COLOR_YELLOW"

im new to scripting
Show the bit of code your trying to use the colour in
Reply
#3

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Kill()", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) You have commited suicide!");

return 1;
}
return 0;
}
Reply
#4

Quote:
Originally Posted by Michael_Cuellar
Посмотреть сообщение
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Kill()", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) You have commited suicide!");

return 1;
}
return 0;
}
Try this


pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Kill()", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, 0xFFFF00AA , "(INFO) You have commited suicide!");

return 1;
}
return 0;
}
Reply
#5

It works only a loose indention now
Reply
#6

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     if(strcmp("/Kill()", cmdtext, true, 10) == 0)
     {
           SetPlayerHealth(playerid, 0);
           SendClientMessage(playerid, 0xFFFF00AA , "(INFO) You have commited suicide!");
           return 1;
     }
     return 0;
}
Reply
#7

Quote:
Originally Posted by Michael_Cuellar
Посмотреть сообщение
It works only a loose indention now
Try this

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Kill()", cmdtext, true, 10) == 0)
{
    SetPlayerHealth(playerid, 0);
    SendClientMessage(playerid, 0xFFFF00AA , "(INFO) You have commited suicide!");

return 1;
}
return 0;
}
Reply
#8

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     if(strcmp("/Kill()", cmdtext, true, 10) == 0)
     {
           SetPlayerHealth(playerid, 0);
           SendClientMessage(playerid, 0xFFFF00AA , "(INFO) You have commited suicide!");
           return 1;
     }
     return 0;
}
Reply
#9

Quote:
Originally Posted by Michael_Cuellar
Посмотреть сообщение
It works only a loose indention now
Try this

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Kill()", cmdtext, true, 10) == 0)
{
    SetPlayerHealth(playerid, 0);
    SendClientMessage(playerid, 0xFFFF00AA , "(INFO) You have commited suicide!");

return 1;
}
return 0;
}
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)