Raised This Month: $51 Target: $400
 12% 

Rank Mod (Lite)


Post New Thread Reply   
 
Thread Tools Display Modes
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 07-28-2010 , 13:24   Re: Rank Mod (Lite)
Reply With Quote #21

Yeah, you were right. You can't do that for dynamic arrays, though.
Seta00 is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 07-28-2010 , 15:43   Re: Rank Mod (Lite)
Reply With Quote #22

Quote:
Originally Posted by Seta00 View Post
Yeah, you were right. You can't do that for dynamic arrays, though.
I understand what the 100 stands for but I'm still fuzzy on what the 6 would be used for. Reserved slots to do what with?
__________________
Hi.
Kreation is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 07-28-2010 , 20:06   Re: Rank Mod (Lite)
Reply With Quote #23

Quote:
Originally Posted by Kreation View Post
I understand what the 100 stands for but I'm still fuzzy on what the 6 would be used for. Reserved slots to do what with?
Well, cellarray sucks. The name suggests slot reservation but it doesn't work at all. You have to push cells if you want to use them anyway (it took hours of rage trying to fix some bugs to find this )
Anyway, I used 6 because the default rank config file has 6 ranks.
Seta00 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-28-2010 , 22:33   Re: Rank Mod (Lite)
Reply With Quote #24

Quote:
Originally Posted by Seta00 View Post
Well, cellarray sucks. The name suggests slot reservation but it doesn't work at all. You have to push cells if you want to use them anyway (it took hours of rage trying to fix some bugs to find this )
Anyway, I used 6 because the default rank config file has 6 ranks.
I would think it allocates memory ahead of time so that it doesn't need to create it when you push a cell. (I don't have any knowledge of the code behind it but that's what I would assume it was)

Probably too offtopic.
__________________
fysiks is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 07-29-2010 , 07:20   Re: Rank Mod (Lite)
Reply With Quote #25

Quote:
Originally Posted by fysiks View Post
I would think it allocates memory ahead of time so that it doesn't need to create it when you push a cell. (I don't have any knowledge of the code behind it but that's what I would assume it was)
This should be correct. The include file says that this is just invalid, reserved space until you make it valid using ArrayPush or ArraySet to actually store something in that space.

I would be interested in the problems seta had with this.


Plugin suggestions:
- You should add an is_user_alive check to the spawn forward.
- Why don't you save the authid into the global cache right away instead of copying from the local authid variable (in client_authorized)?
- No need to use statics in LoadConfigFromFile, it's only called on startup.
- You could use statics in OnItemPickup
__________________
In Flames we trust!
Nextra is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 07-29-2010 , 14:19   Re: Rank Mod (Lite)
Reply With Quote #26

Quote:
Originally Posted by fysiks View Post
I would think it allocates memory ahead of time so that it doesn't need to create it when you push a cell. (I don't have any knowledge of the code behind it but that's what I would assume it was)
Quote:
Originally Posted by Nextra View Post
I would be interested in the problems seta had with this.
Dunno if it allocates memory before use, and I can't check now, since I'm not on my computer until the end of the month. Although I can say it doesn't work the way it should. If you reserve 10 slots for example, then use ArraySet(array, 0, someValue), it says cell 0 doesn't exists.

Quote:
Originally Posted by Nextra View Post
Plugin suggestions:
- You should add an is_user_alive check to the spawn forward.
- Why don't you save the authid into the global cache right away instead of copying from the local authid variable (in client_authorized)?
- No need to use statics in LoadConfigFromFile, it's only called on startup.
- You could use statics in OnItemPickup
Seta00 is offline
xD_1991
Senior Member
Join Date: Jul 2008
Location: Turkey/Istanbul
Old 07-29-2010 , 14:35   Re: Rank Mod (Lite)
Reply With Quote #27

Turkish

Code:
[tr]
STATUS = Durum
RANK = Rutbe
CLASS = Sinif
EXPERIENCE = Tecrube
INCREASE_HEALTH = Saglik Artisi
INCREASE_ARMOR = Zirh Artisi
INCREASE_SPEED = Hiz Artisi
DECREASE_GRAVITY = Alcak Yercekimi
DECREASE_VISIBILITY = Alcak Gorunumluk
xD_1991 is offline
s3rserii
Senior Member
Join Date: Jan 2010
Old 07-30-2010 , 16:50   Re: Rank Mod (Lite)
Reply With Quote #28

Quote:
Originally Posted by s3rserii View Post
hey bro,
can u ad a cvar vor only CT or T.. i need your rankingsystem for only CT
not?
s3rserii is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 07-30-2010 , 17:51   Re: Rank Mod (Lite)
Reply With Quote #29

Quote:
Originally Posted by s3rserii View Post
not?
It doesn't make any sense to add on the main plugin. Request it on Suggestions/Requests and I'll code it.
Seta00 is offline
s3rserii
Senior Member
Join Date: Jan 2010
Old 07-30-2010 , 19:09   Re: Rank Mod (Lite)
Reply With Quote #30

Quote:
Originally Posted by Seta00 View Post
It doesn't make any sense to add on the main plugin. Request it on Suggestions/Requests and I'll code it.
thx my bro

link: https://forums.alliedmods.net/showth...31#post1256631
s3rserii is offline
Reply



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 11:42.


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