error 035: argument type mismatch (argument 2)
#7

Quote:
Originally Posted by NviDa
Посмотреть сообщение
Great!Its done.
But I have question,how come I didn't get any error when I compiled this:
I haven't defined 0x0000FFFF like how I did #define COLOR_RED 0xAA3333AA
pawn Код:
CMD:armourme (playerid, params[])
{
 SetPlayerArmour(playerid,100);
 SendClientMessage(playerid,0x0000FFFF,"You have set your armour to 100");
 return 1;
More information on this one -

Hex codes start with '0x' and are a system of representing numbers, just like binary or decimal or the octal system. You can use hexadecimal numbers in PAWN or most languages using the prefix 0x. Defining hexadecimals is a common way for easily using colors you frequently need. This is easier to do -

pawn Код:
#define COLOR_SOME 0xFFAABB

SendClientMessage(playerid, COLOR_SOME, "Hi!");

....
Than this -

pawn Код:
SendClientMessage(playerid, ... /* Wait, what was the code again? */
Reply


Messages In This Thread
error 035: argument type mismatch (argument 2) - by NviDa - 20.04.2014, 16:23
Re: error 035: argument type mismatch (argument 2) - by Konstantinos - 20.04.2014, 16:24
Re: error 035: argument type mismatch (argument 2) - by JeaSon - 20.04.2014, 16:27
Re: error 035: argument type mismatch (argument 2) - by NviDa - 20.04.2014, 16:35
Re: error 035: argument type mismatch (argument 2) - by Bingo - 20.04.2014, 16:40
Re: error 035: argument type mismatch (argument 2) - by NviDa - 20.04.2014, 16:45
Re: error 035: argument type mismatch (argument 2) - by RajatPawar - 20.04.2014, 16:48

Forum Jump:


Users browsing this thread: 1 Guest(s)