CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
CabConModding
Short questions, quick answers
Updating Progress Bar
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="coolbunny1234" data-source="post: 36089" data-attributes="member: 82745"><p>Fixed it man. Going with the code above, need to make the following edit in the campaignPlayerSettings</p><p>[code]</p><p>reset_values(){</p><p> self.Banking = 0; self.rankLevel = 0; self.prestigeLevel = 0;</p><p> self thread setSavedVariable("hctwar_losses",0,"mp/playerStatsTable.csv");</p><p> self thread setSavedVariable("hckoth_losses",0,"mp/playerStatsTable.csv");</p><p> self.campaignHud["xp"] setValue(self.prestigeLevel);</p><p> self.campaignHud["xp"] setValue(self.rankLevel);</p><p> self.campaignHud["rank"] setValue(self.rankLevel);</p><p> self.campaignHud["nextrank"] setValue(self.prestigeLevel);</p><p>}</p><p></p><p>[/code]</p><p></p><p>and then...</p><p></p><p>[code]</p><p>campaignPlayerSettings()</p><p>{</p><p> self endon("disconnect");</p><p> self reset_values();</p><p> self.xpNeeded = strTok("10;16;22;28;34;40;46;52;58;64;70;76;82;88;94;100;106;112;118;124;130;136;142;148;154;160;166;172;178;184;190;196;202;208;214;220;226;232;238;244;250;256;262;268;274;280;286;292;298;304;310;316;322;328;334;340;346;352;358;364;370;376;382;388;394;400",";");</p><p> //self.prestigeLevel = self getSavedVariable("153");</p><p> //self.rankLevel = self getSavedVariable("154");</p><p> self.XPGot = self getSavedVariable("hctwar_losses","mp/playerStatsTable.csv");</p><p> self.XPextra = self getSavedVariable("hckoth_losses","mp/playerStatsTable.csv");</p><p> self.XPBar = self getSavedVariable("155");</p><p> if(self getSavedVariable("250") != 1)</p><p> {</p><p> self setSavedVariable("152",1);</p><p> self.prestigeLevel = 0;</p><p> }</p><p> if(self.XPBar == 0) self.XPBar = 1;</p><p> self thread extinctionSave();</p><p>}</p><p></p><p>[/code]</p><p></p><p>Because we've already defined the prestige and rank level in the reset_value thread, it was recalling and resetting the previous rank that was being saved from your gameplay in the setSavedVariable thread</p></blockquote><p></p>
[QUOTE="coolbunny1234, post: 36089, member: 82745"] Fixed it man. Going with the code above, need to make the following edit in the campaignPlayerSettings [code] reset_values(){ self.Banking = 0; self.rankLevel = 0; self.prestigeLevel = 0; self thread setSavedVariable("hctwar_losses",0,"mp/playerStatsTable.csv"); self thread setSavedVariable("hckoth_losses",0,"mp/playerStatsTable.csv"); self.campaignHud["xp"] setValue(self.prestigeLevel); self.campaignHud["xp"] setValue(self.rankLevel); self.campaignHud["rank"] setValue(self.rankLevel); self.campaignHud["nextrank"] setValue(self.prestigeLevel); } [/code] and then... [code] campaignPlayerSettings() { self endon("disconnect"); self reset_values(); self.xpNeeded = strTok("10;16;22;28;34;40;46;52;58;64;70;76;82;88;94;100;106;112;118;124;130;136;142;148;154;160;166;172;178;184;190;196;202;208;214;220;226;232;238;244;250;256;262;268;274;280;286;292;298;304;310;316;322;328;334;340;346;352;358;364;370;376;382;388;394;400",";"); //self.prestigeLevel = self getSavedVariable("153"); //self.rankLevel = self getSavedVariable("154"); self.XPGot = self getSavedVariable("hctwar_losses","mp/playerStatsTable.csv"); self.XPextra = self getSavedVariable("hckoth_losses","mp/playerStatsTable.csv"); self.XPBar = self getSavedVariable("155"); if(self getSavedVariable("250") != 1) { self setSavedVariable("152",1); self.prestigeLevel = 0; } if(self.XPBar == 0) self.XPBar = 1; self thread extinctionSave(); } [/code] Because we've already defined the prestige and rank level in the reset_value thread, it was recalling and resetting the previous rank that was being saved from your gameplay in the setSavedVariable thread [/QUOTE]
Name
Verification
Post reply
Forums
CabConModding
Short questions, quick answers
Updating Progress Bar
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top