Raised This Month: $ Target: $400
 0% 

collect all lvls


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 12-28-2008 , 19:56   Re: collect all lvls
Reply With Quote #4

Quote:
Originally Posted by Spunky View Post
PHP Code:
if(TotalLevel[attackerTotalLevel[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.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode