4 Errors fast help please
#1

Код:
C:\Users\High-Tech\Desktop\Los Santos Gang Wars Project v1.0\gamemodes\LSGW.pwn(248) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\High-Tech\Desktop\Los Santos Gang Wars Project v1.0\gamemodes\LSGW.pwn(248) : warning 215: expression has no effect
C:\Users\High-Tech\Desktop\Los Santos Gang Wars Project v1.0\gamemodes\LSGW.pwn(248) : error 001: expected token: ";", but found "-string-"
C:\Users\High-Tech\Desktop\Los Santos Gang Wars Project v1.0\gamemodes\LSGW.pwn(248) : warning 215: expression has no effect
C:\Users\High-Tech\Desktop\Los Santos Gang Wars Project v1.0\gamemodes\LSGW.pwn(248) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\High-Tech\Desktop\Los Santos Gang Wars Project v1.0\gamemodes\LSGW.pwn(248) : fatal error 107: too many error messages on one line

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


4 Errors.
On:

Код:
                ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX, ""COLOR_WHITE"Success!",""COLOR_GREEN"Great! Relog to save your stats!","Ok","Ok");
Reply
#2

Show your macro of your colour. Is it HEX?
Reply
#3

Код:
//Color Defines//
#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_RED 0xFF0000FF
#define COLOR_DARKGREY 0x696969FF
//Color Defines//
Reply
#4

https://sampwiki.blast.hk/wiki/Colour_Embedding

pawn Код:
#define COL_WHITE "{FFFFFF}"
Put this macro somewhere at the top (maybe under your default colours)

Answer:
You have received errors because the white colour which you used is not in HEX type. HEX type is RRGGBB, so basicly after "0x" from yours "COLOR_WHITE" macro the first six letters/numbers are the HEX to type into message/dialog or whatever you want.
Reply
#5

pawn Код:
ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX, "Success!",""{00FF00}Great! Relog to save your stats!","Ok","");
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)