SA-MP Forums Archive
4 Errors fast help please - 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)
+--- Thread: 4 Errors fast help please (/showthread.php?tid=386554)



4 Errors fast help please - HyDrAtIc - 20.10.2012

Код:
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");



Re: 4 Errors fast help please - Riddick94 - 20.10.2012

Show your macro of your colour. Is it HEX?


Re: 4 Errors fast help please - HyDrAtIc - 20.10.2012

Код:
//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//



Re: 4 Errors fast help please - Riddick94 - 20.10.2012

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.


Re: 4 Errors fast help please - Memoryz - 20.10.2012

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