redundant test: constant expression is non-zero
#1

I get this final error

Код:
Warning 206 : redundant test: constant expression is non-zero
Whole code relating to the warning.

pawn Код:
{
                new vehicleid = GetPlayerVehicleID(playerid),
                playingid = v_VehicleInfo[vehicleid][RadioPlaying];
               
                if(TEXTDRAWSET == 2)
                {
                    format(string,sizeof(string),"Listening to: ~n~~w~%s",r_RadioInfo[playingid][r_Name]);
                    TextDrawSetString(v_VehicleInfo[vehicleid][r_Draw],string);
                }
                else
                {
                    TextDrawSetString(v_VehicleInfo[vehicleid][r_Draw],r_RadioInfo[playingid][r_Name]);
                }
                TextDrawShowForPlayer(playerid,v_VehicleInfo[vehicleid][r_Draw]);
                SetPVarInt(playerid,"ID_HideRadioTextdraw",SetTimerEx("HideRadioTextdraw",TEXTDRAW_DISAPPEAR_TIME,false,"ii",playerid,vehicleid));
                PlayAudioStreamForPlayer(playerid,r_RadioInfo[playingid][r_Link]);
                SetPVarInt(playerid,"ID_OldVehicle",vehicleid);
            }
Specific code relating to the warning

pawn Код:
if(TEXTDRAWSET == 2)
Plus, I have defined the TEXTDRAWSET as USE_TEXTDRAW_SET as

pawn Код:
#define TEXTDRAWSET USE_TEXTDRAW_SET
I need help in this, will be grateful if anyone can help me out!
Reply


Messages In This Thread
redundant test: constant expression is non-zero - by TheSka - 06.04.2013, 13:31
Re: redundant test: constant expression is non-zero - by iJumbo - 06.04.2013, 13:42
Re: redundant test: constant expression is non-zero - by Stylock - 06.04.2013, 13:44
Re: redundant test: constant expression is non-zero - by TheSka - 06.04.2013, 13:44
Re: redundant test: constant expression is non-zero - by Basssiiie - 06.04.2013, 14:58

Forum Jump:


Users browsing this thread: 1 Guest(s)