help with warning 206
#1

warning 206: redundant test: constant expression is non-zero


Heres the line of code it tells me it is:

Код:
if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 10,1)

Now i thought that if i made two of thos elines it would fix the warning which it did but it made the line dorment within the script liek i would do:

Код:
if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 10)
if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
instead
Reply


Messages In This Thread
help with warning 206 - by mtywe - 26.11.2010, 21:26
Re: help with warning 206 - by Bessensap - 26.11.2010, 21:35
Re: help with warning 206 - by mtywe - 26.11.2010, 21:39
Re: help with warning 206 - by mtywe - 26.11.2010, 21:41
Re: help with warning 206 - by ExEx - 26.11.2010, 21:43
Re: help with warning 206 - by mtywe - 26.11.2010, 21:46
Re: help with warning 206 - by ExEx - 27.11.2010, 08:06
Re: help with warning 206 - by mtywe - 27.11.2010, 15:15

Forum Jump:


Users browsing this thread: 1 Guest(s)