Trying to learn Ternary Operator, but failed!
#1

pawn Code:
public OnPlayerRequestClass( playerid, classid )
{
    SetPlayerColor( playerid, ( classid == 0 ) : 0xFFFFFFFF  ? ( classid == 1 ) : 0xAAAAAAAA );
    return 1;
}
How to get this working without any errors!
Reply


Messages In This Thread
Trying to learn Ternary Operator, but failed! - by Basicz - 14.06.2011, 07:25
Re: Trying to learn Ternary Operator, but failed! - by Skaizo - 14.06.2011, 07:28
Re: Trying to learn Ternary Operator, but failed! - by Basicz - 14.06.2011, 07:31
Re: Trying to learn Ternary Operator, but failed! - by Calgon - 14.06.2011, 07:34
Re: Trying to learn Ternary Operator, but failed! - by Skaizo - 14.06.2011, 07:37
Re: Trying to learn Ternary Operator, but failed! - by Basicz - 14.06.2011, 07:40

Forum Jump:


Users browsing this thread: 9 Guest(s)