AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Help fixing this one ! (https://forums.alliedmods.net/showthread.php?t=308842)

Frensh 07-05-2018 13:15

Help fixing this one !
 
fixed

^SmileY 07-05-2018 13:21

Re: Help fixing this one !
 
new g_level[32], g_exp[32], g_exp2[32]

These vars need to have size 33 not 32

OciXCrom 07-05-2018 13:21

Re: Help fixing this one !
 
The plugin is very poorly coded, you shouldn't be using that at all. If you want an optimized and properly coded rank system, use the one that I recently made - https://forums.alliedmods.net/showthread.php?t=308540 - this one does the same thing, but it's 10x times better coded and has a lot of options to customize.

Frensh 07-05-2018 13:38

Re: Help fixing this one !
 
Quote:

Originally Posted by OciXCrom (Post 2601179)
The plugin is very poorly coded, you shouldn't be using that at all. If you want an optimized and properly coded rank system, use the one that I recently made - https://forums.alliedmods.net/showthread.php?t=308540 - this one does the same thing, but it's 10x times better coded and has a lot of options to customize.

can you do something for this one because my players have level +100 and they don't wanna lose there level/exp.

OciXCrom 07-05-2018 13:41

Re: Help fixing this one !
 
I can make a plugin that will transfer the data from your plugin to mine.

Frensh 07-05-2018 13:44

Re: Help fixing this one !
 
Quote:

Originally Posted by OciXCrom (Post 2601186)
I can make a plugin that will transfer the data from your plugin to mine.

yeah i would like to use your plugin with level/exp of my players !
thanks

OciXCrom 07-05-2018 19:04

Re: Help fixing this one !
 
I see that your plugin has a maximum of 20 XP for each level, while mine has a different amount for each one, starting from 100 XP for the first level up to 20.000 XP for the last one. Am I right about the first one?

If I'm correct, the amount of XP that will be transfered should be equal to "20 * (level - 1) + current XP".

According to this, if for example a player has 15 XP and he is on level 7, he should receive 135 XP in my plugin (20 * (7 - 1) + 15).

I assume you haven't changed the cvars in the plugin and they are using the values set in the .sma file. If you did change them, please give me your values.

// Nevermind, I can retreive the cvar value in the plugin itself. Just tell me if everything I said is right and I will make the transfer plugin for you.

Frensh 07-05-2018 20:13

Re: Help fixing this one !
 
Quote:

Originally Posted by OciXCrom (Post 2601253)
I see that your plugin has a maximum of 20 XP for each level, while mine has a different amount for each one, starting from 100 XP for the first level up to 20.000 XP for the last one. Am I right about the first one?

If I'm correct, the amount of XP that will be transfered should be equal to "20 * (level - 1) + current XP".

According to this, if for example a player has 15 XP and he is on level 7, he should receive 135 XP in my plugin (20 * (7 - 1) + 15).

I assume you haven't changed the cvars in the plugin and they are using the values set in the .sma file. If you did change them, please give me your values.

// Nevermind, I can retreive the cvar value in the plugin itself. Just tell me if everything I said is right and I will make the transfer plugin for you.

There is 200 level on my plugin, to up the first level you need 10 xp and for the second level you will need 10*(level), exemple: to up level 2 you need 10*(2) = 20 exp and this is also for the other levels.

Frensh 07-05-2018 20:29

Re: Help fixing this one !
 
Quote:

Originally Posted by OciXCrom (Post 2601253)
I see that your plugin has a maximum of 20 XP for each level, while mine has a different amount for each one, starting from 100 XP for the first level up to 20.000 XP for the last one. Am I right about the first one?

If I'm correct, the amount of XP that will be transfered should be equal to "20 * (level - 1) + current XP".

According to this, if for example a player has 15 XP and he is on level 7, he should receive 135 XP in my plugin (20 * (7 - 1) + 15).

I assume you haven't changed the cvars in the plugin and they are using the values set in the .sma file. If you did change them, please give me your values.

// Nevermind, I can retreive the cvar value in the plugin itself. Just tell me if everything I said is right and I will make the transfer plugin for you.

i see that your plugin have 30 ranks, i have an idea if you can make you plugin with 240 levels ( 1 rank = 8 level ) with to up 1 level you will need for the first one 10 exp and the second third ect until the level 240 you will need 10*numberoflevels ( exemple for the second level 10*(2) = 20 exp ^^
and no need for the data transfer i will gave them the level by the give_level cmd on your plugin !

OciXCrom 07-05-2018 20:37

Re: Help fixing this one !
 
You can customize the ranks and levels yourself in the plugin's configuration file, there's no need for me to do anything. My plugin uses XP and each level requires a certain amount of it. The only difference is that the XP doesn't reset to 0 on levelup, but it's keep going. Look at the configuration file and give it a try, you'll proably figure it out.


All times are GMT -4. The time now is 12:40.

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