14.06.2011, 07:25
pawn Code:
public OnPlayerRequestClass( playerid, classid )
{
SetPlayerColor( playerid, ( classid == 0 ) : 0xFFFFFFFF ? ( classid == 1 ) : 0xAAAAAAAA );
return 1;
}
public OnPlayerRequestClass( playerid, classid )
{
SetPlayerColor( playerid, ( classid == 0 ) : 0xFFFFFFFF ? ( classid == 1 ) : 0xAAAAAAAA );
return 1;
}
error 001: expected token: ",", but found ":"
error 029: invalid expression, assumed zero
warning 206: redundant test: constant expression is non-zero
warning 213: tag mismatch
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
fatal error 107: too many error messages on one line
SetPlayerColor(playerid, (classid == 0) ? 0xFFFFFFFF : 0xAAAAAAAA);
Originally Posted by Calg00ne
You are only making two comparisons...
pawn Code:
|
Originally Posted by RSS Cops_sandu
SetPlayerColor(playerid, (classid == 0) ? 0xFFFFFFFF : (classid == 1) ? 0xAAAAAAAA);
|