Weird Error?
#1

The error:
pawn Код:
Test.pwn(51) : error 035: argument type mismatch (argument 2)
The code:
pawn Код:
public OnPlayerConnect(playerid)
{
    SendClientMessage(playerid, COLOR_GREEN, "Test!");
    return 1;
}

Line 51:
pawn Код:
SendClientMessage(playerid, COLOR_GREEN, "Test!");
COLOR_GREEN:
pawn Код:
#define COLOR_GREEN #008000
When I remove line 51, the error is gone... What am I doing wrong?
Reply
#2

You just need to add an 0x in front of it instead of the # symbol:

pawn Код:
#define COLOR_GREEN 0x008000
Reply
#3

Thank you very much.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)