Is it possible to replace 1 with "Yes"?
#3

An example:
pawn Код:
new
    var = 1
;
printf( "var: \"%s\"", ( var == 1 ) ? ( "Yes" ) : ( "No" ) );
It will print var: "Yes"

So, it goes like:
pawn Код:
format(string,sizeof(string),"|| Name : %s || || Gun License : %s ||",RemoveUnderScore(playerid), ( pInfo[playerid][GunLic] == 1 ) ? ( "Yes" ) : ( "No" ) );
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)