19.11.2010, 20:17
Well.. some indentitation would be great. Instead of:
This would be much better to read:
So, also, when specifing params in a function, as in:
You never use a semicolon within the params, so this line:
becomes this line:
Now, looking at your color system, you would have to convert R,G,B to a syntax like 0xRRGGBB and you should be good.
EDIT:
Remember that the colors are in hex. So, FF means 15*15 which equals to 255.. just like RGB
pawn Код:
if(strcmp("/color", cmdtext, true) == 0)
{
SetPlayerColor(playerid, CreateColor(R,G,B););
}
pawn Код:
if(strcmp("/color", cmdtext, true) == 0)
{
SetPlayerColor(playerid, CreateColor(R,G,B););
}
pawn Код:
Function(params)
pawn Код:
SetPlayerColor(playerid, CreateColor(R,G,B););
pawn Код:
SetPlayerColor(playerid, CreateColor(R,G,B));
EDIT:
Remember that the colors are in hex. So, FF means 15*15 which equals to 255.. just like RGB