Errors in define
#1

Hello !!

when i add this code to my script the pawno can't complie ( STOP RUNNING or BLOCKED smth like that )

what wrrong in those defines ?

Quote:

#define WHITE "{FFFFFF}"
#define GREEN "{00F700}"//00B000
#define BLUE "{00A3FF}"
#define RED "{E10000}"
#define ORANGE "{FF7E19}"
#define YELLOW "{FF9E00}"
#define DBLUE "{3300CC}"

Reply
#2

PHP код:
#define WHITE 0xFFFFFFFF
#define GREEN 0x00F700FF
#define BLUE   0x00A3FFFF
#define RED     0xE10000FF
#define ORANGE  0xFF7E19FF
#define YELLOW  0xFF9E00FF
#define DBLUE 0x3300CCFF 
Reply
#3

Quote:
Originally Posted by IceBilizard
Посмотреть сообщение
PHP код:
#define WHITE 0xFFFFFFFF
#define GREEN 0x00F700FF
#define BLUE   0x00A3FFFF
#define RED     0xE10000FF
#define ORANGE  0xFF7E19FF
#define YELLOW  0xFF9E00FF
#define DBLUE 0x3300CCFF 
this will work in string (format, starct ( DIALOGS) ) ?
Reply
#4

No, but you cannot use the same defines for both in text(inside strings) and for functions(for example SendClientMessage)
Reply
#5

#define GREEN "{00F700}"//00B000
Reply
#6

still not working
Reply
#7

Well this is my way of defining hex colors, but it`s the same as yours:
PHP код:
#define embed_blue               "{375FFF}"
#define embed_lblue             "{0095FF}"
#define embed_lightblue         "{00C2EC}"
#define embed_red                 "{FF0000}"
#define embed_white                "{FFFFFF}"
#define embed_green              "{33FF33}"
#define embed_yellow             "{FFFF00}"
#define embed_grey                  "{C0C0C0}"
#define embed_orange              "{FF9900}"
#define embed_pink               "{FF66FF}"
#define embed_pinkl             "{ED136A}" 
Maybe problem is coused by something else.
Reply
#8

Show us an example of how are you using those defines?
Reply
#9

use it like this

PHP код:
#define                        COLOR_GREY                            0xAFAFAFAA
#define                        COLOR_RED                            0xAA3333AA
#define                        COLOR_ORANGE                        0xFF8000FF
#define                        COLOR_YELLOW                        0xFFFF00AA
#define                        COLOR_LIGHTYELLOW                    0xFFFF91AA 
download gcp-build1 to get the 0xFFFF collors
Reply
#10

FIXED !!! Thanks all !!!

++Rep Sended
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)