Quote:
Originally Posted by -hi-
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.