SA-MP Forums Archive
error 035: argument type mismatch (argument 2) - 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: error 035: argument type mismatch (argument 2) (/showthread.php?tid=557309)



error 035: argument type mismatch (argument 2) - X|Dragon|X - 13.01.2015

pawn Код:
if(PlayerInfo[playerid][Banned] == 1)
        {
            SendClientMessage(playerid, COLOR_WHITE, "You are banned from this server.");
            Kick(playerid);
        }
Код:
error 035: argument type mismatch (argument 2)
Help please.


Re: error 035: argument type mismatch (argument 2) - xVIP3Rx - 13.01.2015

Which line is the error ?
I think you didn't define COLOR_WHITE correctly.


Re: error 035: argument type mismatch (argument 2) - CalvinC - 13.01.2015

As VIP3R said, it's COLOR_WHITE that isn't defined in a proper way. It says in the warning.
Here's an example how you can define it correctly.
pawn Код:
#define COLOR_WHITE 0xFFFFFFFF