Register for your free account! | Forgot your password?

You last visited: Today at 02:47

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help] Points!!

Discussion on [Help] Points!! within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 99
[Help] Points!!

I'm sure a lot of you know about EmmeTheCoder's release about Points. I got everything working perfectly, which is great! However, when the character logs out the points do not save and the char logs back in with 0 points. Does anyone know who to fix this?!

These are the two save codes I've tried. None work!

#1
Code:
        public void SavePoints()
        {
            LastSave = DateTime.Now;
            if (MyClient.There)
                if (MyClient.Online)
                {
                    DataBase.SaveChar(this);
                    DataBase.SavePoints(this);
                }
        }
#2
Code:
        public void SavePoints()
        {
            LastSave = DateTime.Now;
            if (MyClient.There)
                if (MyClient.Online)
                    DataBase.SaveChar(this);
                    DataBase.SavePoints(this);
        }
Jay1029 is offline  
Old 09/07/2009, 07:50   #2
 
elite*gold: 0
Join Date: Aug 2009
Posts: 930
Received Thanks: 448
public void SavePoints()
{
LastSave = DateTime.Now;
if (MyClient.There)
{
if (MyClient.Online)
{
DataBase.SaveChar(this);
DataBase.SavePoints(this);
}
}
}

possibly? never tried points.
.Guru is offline  
Old 09/07/2009, 08:20   #3
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Try This

Code:
public void SavePoints()
        {
            LastSave = DateTime.Now;
            if (MyClient.There)
                 {
                      if (MyClient.Online)
                       {
                            DataBase.SaveChar(this);
                            DataBase.SavePoints(this);
                        }
                  }
        }
hunterman01 is offline  
Old 09/07/2009, 08:37   #4
 
elite*gold: 0
Join Date: Aug 2009
Posts: 930
Received Thanks: 448
lmaoz that's exactly what i just posted
.Guru is offline  
Old 09/07/2009, 09:34   #5
 
UnoAmigos's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 192
Received Thanks: 107
are you using MySQL source or Ini Source? i can helpyou if you're using Ini source..
UnoAmigos is offline  
Old 09/07/2009, 17:46   #6
 
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 99
BAHH!!! Points still don't save -.-'
Thanks anyways guys, looks like I'll have to keep trying. Or wait for someone else to post their way of makin' it work.
Jay1029 is offline  
Old 09/07/2009, 17:53   #7
 
elite*gold: 0
Join Date: Aug 2009
Posts: 930
Received Thanks: 448
under every if

you need to open brackets

ex.

Code:
if (blah)
{
   if (blah)
   {
    blah
   }
}
.Guru is offline  
Old 09/07/2009, 19:57   #8
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Yeah thats what i was trying to say and dident realise he said it right above me 0.0
hunterman01 is offline  
Old 09/07/2009, 20:30   #9
 
elite*gold: 0
Join Date: Sep 2009
Posts: 249
Received Thanks: 17
The proper thing for you to do would actually be adding it into the SaveChar function, This way you wont need to do SavePoints() You can just leave it alone because whenever someone disconnects from the server it saves the character which in fact it will save the points.
Empty Project is offline  
Old 09/07/2009, 21:06   #10
 
elite*gold: 0
Join Date: Aug 2009
Posts: 930
Received Thanks: 448
Quote:
Originally Posted by Empty Project View Post
The proper thing for you to do would actually be adding it into the SaveChar function, This way you wont need to do SavePoints() You can just leave it alone because whenever someone disconnects from the server it saves the character which in fact it will save the points.
yeah i would have to agree on this one, because if you are using SavePoints()
& SaveChar(), it's basically wasting space. SaveChar() saves all the char's attributes, points and all, so like empty project said, would be easier to save the whole character instead.
.Guru is offline  
Old 09/08/2009, 21:22   #11
 
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 99
K thanks guys
Jay1029 is offline  
Reply


Similar Threads Similar Threads
[Request] How Change Mode Stat Points and Skill Points?
05/09/2013 - Shaiya - 49 Replies
How do i change MODE Stat Points and Skill Points per level? Ex.: Ultimate Mode: 7 Stat Points - want to change it to 14 Stat Points 4 Skill Points - want to change it to 8 Skill Points Thanks for your attention.
All Points Bulletin 2600 Points Keys und Gamekeys [S] 20 PSC
07/23/2010 - Trading - 18 Replies
Hallo liebe Elitepvpers Community, ich biete hier frische Gamekeys an. Falls sich jemand wundert? "Hä wie kann er die so billig machen?" Ich bekomme die Keys von einem Reseller Shop zum Verkauf daher die billigen Preise. Neuheiten kosten 35€ Etwas ältere Games kosten 20€
What to trade my dupe in brazen to your bug in temporary points or pk-points
05/29/2010 - RF Online - 2 Replies
What to trade my dupe in brazen to your bug in temporary points or pk-points send me some pic or proof not a scammer trust me



All times are GMT +1. The time now is 02:48.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.