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

OciXCrom's Rank System [XP|Levels|Ranks]


Post New Thread Reply   
 
Thread Tools Display Modes
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-29-2018 , 13:56   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #91

Update v2.6
  • Added a new setting NOTIFY_ON_KILL - if enabled, players will receive chat notifications about the XP they received when killing a player.

In order to update the plugin from version v2.5 to version v2.6, you need to make the following changes:
  • update the file crx_ranksystem.sma and recompile the plugin;
  • update all files in the data folder;
  • in the [Settings] section in the file configs/RankSystem.ini, add the new setting:

    Code:
    # If set to 1, players will receive a chat message containing the amount of XP that they receive when killing another player.
    # This will also display a chat message to the player if he committed suicide and the plugin is set to make players lose XP on suicide.
    NOTIFY_ON_KILL = 0
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 09-04-2018 , 10:08   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #92

so, i paused a few plugins on my server, your rank system too, then unpaused the next day, all my XP and ranks were reseted, is this normal?
tarsisd2 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 09-04-2018 , 12:50   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #93

Definitely not. Are you using the latest version (2.6)? There was a problem wtih reseting in previous versions.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 09-04-2018 , 15:44   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #94

Quote:
Originally Posted by OciXCrom View Post
Definitely not. Are you using the latest version (2.6)? There was a problem wtih reseting in previous versions.
i'm using this version you edited for me

https://forums.alliedmods.net/showpo...8&postcount=61

since i'm no longer using geopi i'm gonna update it

edit: i tried to compile with your new version and get this errors

PHP Code:
//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// crx_ranksystem.sma
//
// C:\Users\D2Studio\Desktop\servidor\amxmodx-1.8.3-dev-git5177-windows\amxmodx-1.8.3-dev-git5177-windows\addons\amxmodx
\scripting\crx_ranksystem.sma(848) : error 021symbol already defined"reset_s
tats"
// C:\Users\D2Studio\Desktop\servidor\amxmodx-1.8.3-dev-git5177-windows\amxmodx-1.8.3-dev-git5177-windows\addons\amxmodx
\scripting\crx_ranksystem.sma(848) : error 001expected token"="but found "
)"
// C:\Users\D2Studio\Desktop\servidor\amxmodx-1.8.3-dev-git5177-windows\amxmodx-1.8.3-dev-git5177-windows\addons\amxmodx
\scripting\crx_ranksystem.sma(867) : warning 203symbol is never used"id"
// C:\Users\D2Studio\Desktop\servidor\amxmodx-1.8.3-dev-git5177-windows\amxmodx-1.8.3-dev-git5177-windows\addons\amxmodx
\scripting\crx_ranksystem.sma(883) : warning 203symbol is never used"id"
// C:\Users\D2Studio\Desktop\servidor\amxmodx-1.8.3-dev-git5177-windows\amxmodx-1.8.3-dev-git5177-windows\addons\amxmodx
\scripting\crx_ranksystem.sma(938) : warning 203symbol is never used"id"
// C:\Users\D2Studio\Desktop\servidor\amxmodx-1.8.3-dev-git5177-windows\amxmodx-1.8.3-dev-git5177-windows\addons\amxmodx
\scripting\crx_ranksystem.sma(1142) : error 022must be lvalue (non-constant)
// C:\Users\D2Studio\Desktop\servidor\amxmodx-1.8.3-dev-git5177-windows\amxmodx-1.8.3-dev-git5177-windows\addons\amxmodx
\scripting\crx_ranksystem.sma(1140) : warning 203symbol is never used"id"
// C:\Users\D2Studio\Desktop\servidor\amxmodx-1.8.3-dev-git5177-windows\amxmodx-1.8.3-dev-git5177-windows\addons\amxmodx
\scripting\crx_ranksystem.sma(1183) : error 022must be lvalue (non-constant)
// C:\Users\D2Studio\Desktop\servidor\amxmodx-1.8.3-dev-git5177-windows\amxmodx-1.8.3-dev-git5177-windows\addons\amxmodx
\scripting\crx_ranksystem.sma(1182) : warning 203symbol is never used"id"
//
// 4 Errors.
// Could not locate output file C:\Users\D2Studio\Desktop\servidor\amxmodx-1.8.3-dev-git5177-windows\amxmodx-1.8.3-dev-git5177-windows\addons\amxmodx\scripting\compiled\crx_ranksystem.amx (compile fai
led).
//
// Compilation Time: 1.78 sec
// ----------------------------------------

Press enter to exit ... 

Last edited by tarsisd2; 09-04-2018 at 15:59. Reason: look edit
tarsisd2 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 09-04-2018 , 17:25   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #95

You messed up the code somehow by mistake, it compiles just fine for me. Redownload the file and try again.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 09-04-2018 , 17:51   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #96

Quote:
Originally Posted by OciXCrom View Post
You messed up the code somehow by mistake, it compiles just fine for me. Redownload the file and try again.
nope, original code, i can compile fine on amx 1.8.2 i tested on 2 different amx 1.8.3 versions and can't compile it!
tarsisd2 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 09-04-2018 , 18:01   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #97

Which 1.8.3 build are you using exactly? 5177 as shown in the folder name or another one? You may have a problem with the dev version, update to the latest 1.9 build and try again.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 09-04-2018 , 21:49   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #98

Quote:
Originally Posted by OciXCrom View Post
Which 1.8.3 build are you using exactly? 5177 as shown in the folder name or another one? You may have a problem with the dev version, update to the latest 1.9 build and try again.
i tried amx 1.8.3 5074, 5177 which i'm using and also 5201 which is the lastest "good' version which is recommended on some russian forums which i follow and you too on dev :p

i'm not gonna upgrade to 1.9 until they release an stable version, i will leave you plugin as it is for now so, later on i get your updated version, just don't know why your update don't compile, since the older versions compile great!

thanks
tarsisd2 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-05-2018 , 07:44   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #99

Quote:
Originally Posted by tarsisd2 View Post
i tried amx 1.8.3 5074, 5177 which i'm using and also 5201 which is the lastest "good' version which is recommended on some russian forums which i follow and you too on dev :p

i'm not gonna upgrade to 1.9 until they release an stable version, i will leave you plugin as it is for now so, later on i get your updated version, just don't know why your update don't compile, since the older versions compile great!

thanks
1.9 is essentially 1.8.3, just the version was changed.
__________________
HamletEagle is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 09-05-2018 , 08:15   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #100

The error says that the reset_stats function is already defined. As you can see in the code, it's not. The only reason why this error can show up if it's defined somewhere in your include files, but there's no such function in the default AMXX include files, so this makes no sense. What you can do fix the error is rename the function to something else (e.g. `cm_reset_stats`) on lines 467 and 848.

PS: As HamletEagle said, the latest "good" version is the latest 1.9, not dev 5201. The numbers continue from 5202 and so on in 1.9. The Russian forum you saw is probably outdaded since dev builds above 5201 came out only a few days ago.

Edit: Oh, nevermind. I see what the problem is. A reset_stats function actually exists in ReAPI, I don't know why the decided to modify a default AMXX file. I renamed the function and it compiles fine now.
__________________

Last edited by OciXCrom; 09-05-2018 at 08:28.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 05:22.


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