Quote:
Originally Posted by LarzI
I'm not entirely sure if it works, but try this:
pawn Код:
CMD:color(playerid, params[]) { new iR, iG, iB ; if( sscanf( params, "iii", iR, iG, iB )) return SendClientMessage( playerid, 0xFFFF00AA, "[USAGE] {FFFFFF}/color [Red] [Blue] [Green] (Values 0 - 255)" ); if(( 256 <= iR <= -1 ) || ( 256 <= iG <= -1 ) || ( 256 <= iB <= -1 )) return SendClientMessage( playerid, 0xFFFF00AA, "[USAGE] {FFFFFF}/color [Red] [Blue] [Green] (Values 0 - 255)" );
iR &= (( 0xFF << 16 ) | (( iG & 0xFF ) << 8 ) | ( iB & 0xFF )); SetPlayerColor( playerid, iR );
return true; }
|
E:\games\server\color.pwn(1) : warning 203: symbol is never used: "color"
E:\games\server\color.pwn(1 -- 18 ) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
How to fix ?