AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Reading ranks ( cat, dog etc ) from .txt or nvault (https://forums.alliedmods.net/showthread.php?t=206675)

danonix 01-25-2013 03:37

Reading ranks ( cat, dog etc ) from .txt or nvault
 
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 :P ).

Thank you for all guys

Cheers

fysiks 01-25-2013 03:51

Re: Reading ranks ( cat, dog etc ) from .txt or nvault
 
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.

danonix 01-25-2013 04:17

Re: Reading ranks ( cat, dog etc ) from .txt or nvault
 
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.

zi443r 01-25-2013 05:19

Re: Reading ranks ( cat, dog etc ) from .txt or nvault
 
something like this: https://forums.alliedmods.net/showthread.php?t=29291 ?

danonix 01-25-2013 05:33

Re: Reading ranks ( cat, dog etc ) from .txt or nvault
 
Yes Dude! Same thing, but ranks i'd like to be in .txt ( able to change anytime that I want )

fysiks 01-25-2013 16:18

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

Originally Posted by fysiks (Post 1880100)
There are many plugins that read from files. One example would be my apology plugin in my signature.



All times are GMT -4. The time now is 20:37.

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