error 035: argument type mismatch (argument 2) [SOLVED]
#1

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
Reply
#2

Try to change COL_GREEN to something else in defines like GREEN
Reply
#3

Hi MiGu3X,

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

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)
Reply
#5

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)