26.11.2010, 21:26
warning 206: redundant test: constant expression is non-zero
Heres the line of code it tells me it is:
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:
instead
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)