Quote:
Originally Posted by Spunky
PHP Code:
if(TotalLevel[attacker] TotalLevel[33] += StrLevel[33]
Should probably be:
PHP Code:
if (TotalLevel[attacker] == TotalLevel[33] += StrLevel[33]
|
No, this code is just totally invalid. If "TotalLevel[33]" and "StrLevel[33]" made any sense, then it would actually be:
Code:
if(TotalLevel[attacker] == TotalLevel[33] + StrLevel[33])
The following expressions are equivalent:
Code:
var1 += var2
var1 = var1 + var2
So although the code would compile (again, assuming TotalLevel[33] and StrLevel[33] made any sense), it wouldn't do what he wanted.
__________________