Help please. -
Dopey. - 12.05.2012
C:\Users\Arnoldas\Desktop\Bone County\gamemodes\base.pwn(11

: error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Arnoldas\Desktop\Bone County\gamemodes\base.pwn(11

: error 017: undefined symbol "COLOR_WHITE"
C:\Users\Arnoldas\Desktop\Bone County\gamemodes\base.pwn(11

: warning 215: expression has no effect
C:\Users\Arnoldas\Desktop\Bone County\gamemodes\base.pwn(11

: error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Arnoldas\Desktop\Bone County\gamemodes\base.pwn(11

: fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Is what i get when i try to compile.. What could be the problem?
Error 215:
new string[128];
Error 017:
#define COL_WHITE "{FFFFFF}"
#define COL_RED "{F81414}"
#define COL_GREEN "{00FF22}"
#define COLOR_LIGHTBLUE 0xADD8E6FF
#define COLOR_FADE1 0xFFFFFFFF
#define COLOR_FADE2 0xC8C8C8C8
#define COLOR_FADE3 0xAAAAAAAA
#define COLOR_FADE4 0x8C8C8C8C
#define COLOR_FADE5 0x6E6E6E6E
#define COLOR_LIGHTGREEN 0x90EE90FF
#define COLOR_MEDIUMPURPLE 0x9370DBFF
#define COLOR_GOLD 0xFFD700FF
#define COLOR_LIGHTSKYBLUE 0x87CEFAFF
#define COLOR_CRIMSON 0xDC143CFF
Tell me what line should i add for the bugs to fix, +1rep for whoever helps me, thanks in advance.
Re: Help please +1Rep -
Emil123 - 12.05.2012
C:\Users\Arnoldas\Desktop\Bone County\gamemodes\base.pwn(11 : error 017: undefined symbol "COLOR_WHITE"
For this error add to the other colors this
#define COLOR_WHITE 0xFFFFFFAA
Re: Help please +1Rep -
Kukkurloom - 12.05.2012
Jes...
{FFFFFF} - You use this in SendClientMessage(playerid,0xADD8E6FF, "You are {FFFFFF}EPIC!");
0xFFFFFFAA - You use this in SendClientMessage(playerid,0xFFFFFFAA, "You are EPIC!");
-----
Hope you got it
Re: Help please +1Rep -
Dopey. - 12.05.2012
Thanks guys! It helped! I had totally forgot about that!

But there's still 4 errors remaining.:/
Re: Help please +1Rep -
SnG.Scot_MisCuDI - 12.05.2012
copy/paste the code that youre getting the error on.. Use [pawn]
cant read that shit
Re: Help please +1Rep -
AndreT - 12.05.2012
Do you use the definition properly in your messages?
I have seen some people do things like
pawn Код:
// WRONG!
#define COLOR_RED "FF0000"
SendClientMessage(playerid, COLOR_WHITE, "Hey, {COLOR_RED}Dude!");
But that's wrong, and the proper way to implement "shorter" color codes would be:
pawn Код:
// RIGHT!
#define COLOR_RED "FF0000"
SendClientMessage(playerid, COLOR_WHITE, "Hey, {"COLOR_RED"}Dude!");
But in your case, you're showing us a list of definitions which DOES NOT include COLOR_WHITE. It only has COL_WHITE, but somewhere in your code, you use COLOR_WHITE? Is the problem not too obvious?
Re: Help please +1Rep -
kazekene - 12.05.2012
Do it like this
#define COLOR_WHITE "{FFFFFF}"
#define COLOR_RED "{F81414}"
#define COLOR_GREEN "{00FF22}"
#define COLOR_LIGHTBLUE 0xADD8E6FF
#define COLOR_FADE1 0xFFFFFFFF
#define COLOR_FADE2 0xC8C8C8C8
#define COLOR_FADE3 0xAAAAAAAA
#define COLOR_FADE4 0x8C8C8C8C
#define COLOR_FADE5 0x6E6E6E6E
#define COLOR_LIGHTGREEN 0x90EE90FF
#define COLOR_MEDIUMPURPLE 0x9370DBFF
#define COLOR_GOLD 0xFFD700FF
#define COLOR_LIGHTSKYBLUE 0x87CEFAFF
#define COLOR_CRIMSON 0xDC143CFF
Cuz you only had COL instead of COLOR on them..
AW: Help please +1Rep -
EthanR - 13.05.2012
Quote:
#define COL_WHITE "{FFFFFF}"
#define COL_RED "{F81414}"
#define COL_GREEN "{00FF22}"
#define COLOR_LIGHTBLUE 0xADD8E6FF
#define COLOR_FADE1 0xFFFFFFFF
#define COLOR_FADE2 0xC8C8C8C8
#define COLOR_FADE3 0xAAAAAAAA
#define COLOR_FADE4 0x8C8C8C8C
#define COLOR_FADE5 0x6E6E6E6E
#define COLOR_LIGHTGREEN 0x90EE90FF
#define COLOR_MEDIUMPURPLE 0x9370DBFF
#define COLOR_GOLD 0xFFD700FF
#define COLOR_LIGHTSKYBLUE 0x87CEFAFF
#define COLOR_CRIMSON 0xDC143CFF
|
Change the red lines into
Quote:
#define COLOR_WHITE 0xFFFFFFFF
#define COLOR_RED 0xF81414FF
#define COLOR_GREEN 0x00FF22FF
|
Re: Help please +1Rep -
Dopey. - 13.05.2012
Quote:
Originally Posted by SnG.Scot_MisCuDI
copy/paste the code that youre getting the error on.. Use [pawn]
cant read that shit
|
pawn Код:
C:\Users\Arnoldas\Desktop\Bone County\gamemodes\base.pwn(119) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Arnoldas\Desktop\Bone County\gamemodes\base.pwn(119) : warning 215: expression has no effect
C:\Users\Arnoldas\Desktop\Bone County\gamemodes\base.pwn(119) : error 001: expected token: ";", but found "-string-"
C:\Users\Arnoldas\Desktop\Bone County\gamemodes\base.pwn(119) : warning 215: expression has no effect
C:\Users\Arnoldas\Desktop\Bone County\gamemodes\base.pwn(119) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Arnoldas\Desktop\Bone County\gamemodes\base.pwn(119) : fatal error 107: too many error messages on one line
4 Errors
Tell me what else to put up from the script, im a noob i know, im doing a gm and learning on my way, but this the first time i meet with a bug like this that im not able to fix, thanks guys for helping me out.
Re: Help please +1Rep -
kazekene - 13.05.2012
Copy and paste the Lines here