Error !
#1

Help me

#define COLOR_YELLOW 0xFFFF00AA

Код:
: error 017: undefined symbol "COLOR_YELLOW
Код:
forward SpeedHack(playerid);
public SpeedHack(playerid) {
	if(GetVehicleSpeed(GetPlayerVehicleID(playerid)) > 250)
	{
	    new string[357];
	    format(string, sizeof(string), "{AA3333}System{FFFF00}: %s (ID %d)  Hack Speed.", GetPlayerNameEx(playerid), playerid);
		ABroadCast(COLOR_YELLOW, string, 2);
    }
}
Reply
#2

Is COLOR_YELLOW defined BEFORE SpeedHack?

It should be:
pawn Код:
#includes <a_samp>
// other includes..

#define COLOR_YELLOW 0xFFFF00AA
// others

forward SpeedHack(playerid);
public SpeedHack(playerid) {
    if(GetVehicleSpeed(GetPlayerVehicleID(playerid)) > 250)
    {
        new string[357];
        format(string, sizeof(string), "{AA3333}System{FFFF00}: %s (ID %d)  Hack Speed.", GetPlayerNameEx(playerid), playerid);
        ABroadCast(COLOR_YELLOW, string, 2);
    }
}
Reply
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Is COLOR_YELLOW defined BEFORE SpeedHack?

It should be:
pawn Код:
#includes <a_samp>
// other includes..

#define COLOR_YELLOW 0xFFFF00AA
// others

forward SpeedHack(playerid);
public SpeedHack(playerid) {
    if(GetVehicleSpeed(GetPlayerVehicleID(playerid)) > 250)
    {
        new string[357];
        format(string, sizeof(string), "{AA3333}System{FFFF00}: %s (ID %d)  Hack Speed.", GetPlayerNameEx(playerid), playerid);
        ABroadCast(COLOR_YELLOW, string, 2);
    }
}
Thank very much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)