Raised This Month: $ Target: $400
 0% 

TFC skills rank with speed run timer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Lt Llama
Senior Member
Join Date: Aug 2004
Old 09-17-2006 , 03:47   Re: TFC skills rank with speed run timer
Reply With Quote #11

Quote:
Originally Posted by -hi- View Post
I noticed you are using arrays with 32 slots for storing information about players. It's possible for a player to have an ID of 32, and 32 isn't a legal slot in the arrays. I would change all the id based arrays to have 33 slots.

EDIT:
It still crashes when anyone uses the /top5 command. I'm using 1.75a
Hm, I don't get it. Where to change the slots?
If I look for example in the official amxmodx plugins they use 32 slots.
For example in admincmd.sma:

Code:
new authid[32], authid2[32], name2[32], name[32], userid2, reason[32] get_user_authid(id, authid, 31) get_user_authid(player, authid2, 31) get_user_name(player, name2, 31) get_user_name(id, name, 31)

Are those such places I should change? If not, can you point out an example where I should change it?

I'll have a look at the crash problem. Btw, do you have less than 5 rows in your database? Thats the only reason when I think it would crash. I use 1.75a to but my skillsrank tables are packed ?

/Lt.
__________________
A dodo: Used to describe someone without common sense and who always has the pathetic confused look on their face when a question is asked.

Last edited by Lt Llama; 09-17-2006 at 04:08.
Lt Llama 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