SA-MP Forums Archive
Hi - 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: Hi (/showthread.php?tid=500767)



Hi - Dipto - 15.03.2014

hi,

this is the error : error 035: argument type mismatch (argument 2)

the code is : SendClientMessage(playerid, green, "Welcome to my server!");

anywhere i put this code, show me the error, what to do now


Re: Hi - RoboN1X - 15.03.2014

There is something wrong with "green", you probably defined it wrong, because the type is mismatch (not equal with the SendClientMessage 2nd argument).
Make sure the type is a valid color code like this:
pawn Код:
#define green 0x00FF00FF



Re: Hi - iThePunisher - 15.03.2014

yes robo is right.
at
pawn Код:
#define green
delete it and put this
pawn Код:
#define green 0x20EC39FF   {20EC39} //green color



Re: Hi - Dipto - 15.03.2014

thanks, i put green in two time with wrong code, thakns


Re: Hi - MythicalMarauder - 15.03.2014

Just do what they said, it may fix your problem.


Re: Hi - MP2 - 15.03.2014

Quote:
Originally Posted by iThePunisher
Посмотреть сообщение
yes robo is right.
at
pawn Код:
#define green
delete it and put this
pawn Код:
#define green 0x20EC39FF   {20EC39} //green color
Why do you feel the need to repeat exactly what has been said..?

Quote:
Originally Posted by MythicalMarauder
Посмотреть сообщение
Just do what they said, it may fix your problem.
And why are you telling him to do what they said? Clearly he's going to do that. Why wouldn't he?


Re: Hi - Dipto - 15.03.2014

Quote:
Originally Posted by MythicalMarauder
Посмотреть сообщение
Just do what they said, it may fix your problem.
For post count