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



error 035: argument type mismatch (argument 2) [SOLVED] - MiGu3X - 04.02.2013

Doing scripting I got this problem error 035: argument type mismatch (argument 2), andline is 163 in where it says SendClientMessage blah blah in where i got the problem, pls help.

Код:
CMD:welcome(playerid, params[])
	{
 	SendClientMessage(playerid, COL_GREEN, "Welcome to the server, Enjoy your stay!");
	return 1;
}
HELP me please and i'll rep u


Re: error 035: argument type mismatch (argument 2) - lordturhan - 04.02.2013

Try to change COL_GREEN to something else in defines like GREEN


Re: error 035: argument type mismatch (argument 2) - u3ber - 04.02.2013

Hi MiGu3X,

nothing seems to be wrong with the code you've provided. are you sure that's the line that the error occurs?


Re: error 035: argument type mismatch (argument 2) [SOLVED] - MiGu3X - 04.02.2013

Yes, im sure, I included zcmd and did all, but idk why that's happening, ill change colour and see what's up....

LOL, thanks u both guys, ill rep+ both, the problem was the COL_GREEN, the define didn't worked on that string (or whatever is called), thx (SOLVED)


Re: error 035: argument type mismatch (argument 2) - a.z.a.r - 04.02.2013

At the top of the script should be this:-

#define COL_GREEN #00FF00

at cmd line

pawn Код:
CMD:welcome(playerid, params[])
    {
    SendClientMessage(playerid, 00FF00, "Welcome to the server, Enjoy your stay!");
    return 1;
}