ternary operator string problem.
#4

Quote:
Originally Posted by Vince
View Post
Wrap the strings in parentheses like ("Yes") and ("No"). This will work. Y_Less broke something in the compiler while adapting it for SA-MP.
Thank you, but Haven't understood it clearly. REP anyway!
Quote:
Originally Posted by Jefff
View Post
pawn Code:
biss = ( PlayerInfo[playerid][pBizz] != INVALID_BIZZ_ID ) ? ("Yes") : ("No");
car = ( PlayerInfo[playerid][pCar]   !=   INVALID_CAR_ID ) ? ("Yes") : ("No");
Thanks, compiles nice, gonna check it later! REP
Reply


Messages In This Thread
ternary operator string problem. - by erminpr0 - 23.12.2013, 22:06
Re: ternary operator string problem. - by Vince - 23.12.2013, 22:16
Re: ternary operator string problem. - by Jefff - 23.12.2013, 22:17
Re: ternary operator string problem. - by erminpr0 - 23.12.2013, 22:26

Forum Jump:


Users browsing this thread: 1 Guest(s)