Raised This Month: $ Target: $400
 0% 

TFC skills rank with speed run timer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
-hi-
Member
Join Date: Jul 2006
Old 09-17-2006 , 04:17   Re: TFC skills rank with speed run timer
Reply With Quote #11

Yes, my DB is practically empty.

I'm talking about places where you use a player's ID number (which can be 1-32) as an index in an array:

Code:
new bool:hasTimer[32]

Then later in the code you use the player's ID number to set things in the array:

Code:
hasTimer[id] = false

Since the player ID can be 32, this code would be wrong since the legal indices for an array of size 32 are 0-31:

Code:
hasTimer[32] = false

Last edited by -hi-; 09-17-2006 at 04:20.
-hi- is offline
 



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 22:30.


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