Raised This Month: $ Target: $400
 0% 

Reading ranks ( cat, dog etc ) from .txt or nvault


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
danonix
Senior Member
Join Date: Dec 2012
Old 01-25-2013 , 03:37   Reading ranks ( cat, dog etc ) from .txt or nvault
Reply With Quote #1

Hello guys,

Im new into scripting, I would like to save information about ranks in .txt or smth, so I can change it anytime I want. Fysiks ( thanks ) said, that I have to use vault, nvault or fopen() functions etc, but I dont know how should I start with it. That how looks code:

Code:
    if ( stats[0] >= 0 && stats[0] <= 29)
        format(ranga,29,"Cat" )
How I can do that, so "Cat" could be read from .txt, and I could change it anytime ( it would be best way for me I think, but if you will say that should I do it by other way, I can do it, since I cant do something alone ).

Thank you for all guys

Cheers
danonix is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-25-2013 , 03:51   Re: Reading ranks ( cat, dog etc ) from .txt or nvault
Reply With Quote #2

What kind of "rank" are you talking about? I originally thought you meant some sort of stat. If you are just wanting to put a list of labels for players then you wouldn't want to use a vault. There are many plugins that read from files. One example would be by apology plugin in my signature.
__________________
fysiks is offline
danonix
Senior Member
Join Date: Dec 2012
Old 01-25-2013 , 04:17   Re: Reading ranks ( cat, dog etc ) from .txt or nvault
Reply With Quote #3

I mean rank, that for frags it shows in hud "rankname"? For example, if you have got 30 kills, it shows CAT, if you got 45, you have got DOG etc, I've got this plugin, but you can change "rankname" only in sma, but I would like to do it in .txt or whatever, but in other file than .sma, Ill check your plugin.

Last edited by danonix; 01-25-2013 at 04:44.
danonix is offline
zi443r
Senior Member
Join Date: Mar 2009
Location: Braila,Romania
Old 01-25-2013 , 05:19   Re: Reading ranks ( cat, dog etc ) from .txt or nvault
Reply With Quote #4

something like this: https://forums.alliedmods.net/showthread.php?t=29291 ?
zi443r is offline
danonix
Senior Member
Join Date: Dec 2012
Old 01-25-2013 , 05:33   Re: Reading ranks ( cat, dog etc ) from .txt or nvault
Reply With Quote #5

Yes Dude! Same thing, but ranks i'd like to be in .txt ( able to change anytime that I want )
danonix is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-25-2013 , 16:18   Re: Reading ranks ( cat, dog etc ) from .txt or nvault
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
There are many plugins that read from files. One example would be my apology plugin in my signature.
__________________
fysiks 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 20:37.


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