|
You last visited: Today at 08:04
Advertisement
Question about database save points,kill, and deaths
Discussion on Question about database save points,kill, and deaths within the Flyff Private Server forum part of the Flyff category.
04/04/2016, 17:22
|
#1
|
elite*gold: 0
Join Date: May 2011
Posts: 244
Received Thanks: 12
|
Question about database save points,kill, and deaths
Hello guys,
i need a little help about saving the points, kills, and deaths on Points table without replacing the current values there but the new values will be added to the old values.
my prodecure on saving
IF NOT EXISTS ( SELECT * FROM POINTS_TBL WHERE idPlayer = @idPlayer and serverindex = @  dex )
BEGIN
INSERT POINTS_TBL ( serverindex, szName, idPlayer, nJob, nPoints, nKills, nDeaths )
VALUES @  dex, @  ame, @idPlayer, @  b, @nPoints, @  lls, @  s )
END
ELSE BEGIN
UPDATE POINTS_TBL SET
serverindex = @  dex,
szName = @  ame,
idPlayer = @idPlayer,
nJob = @  b,
nPoints = @nPoints,
nKills = @  lls,
nDeaths = @  s
WHERE serverindex = @  dex AND idPlayer = @idPlayer
END
RETURN
but instead of adding or updating the values on POINTS_TBL it replaces the value there with the new ones.
Sorry for the bad english. im kinda new about databases..
Thanks in advance
|
|
|
04/04/2016, 18:14
|
#2
|
elite*gold: 0
Join Date: Mar 2008
Posts: 665
Received Thanks: 230
|
Quote:
Originally Posted by jeromerz
i need a little help about saving the points, kills, and deaths on Points table without replacing the current values there but the new values will be added to the old values.
|
What? Any example?
|
|
|
04/04/2016, 22:23
|
#3
|
elite*gold: 0
Join Date: May 2011
Posts: 244
Received Thanks: 12
|
Im working FFA System based on erendora. When the player war starts and a recorded score is added on the database the next time i reopen the event or the next player war occurs. The score recorded is replaced on the score_tbl instead of adding it.
I hope you can help me  thnx in advance
|
|
|
04/05/2016, 01:38
|
#4
|
elite*gold: 0
Join Date: Mar 2008
Posts: 665
Received Thanks: 230
|
After reading over 10 times trying to figure out what you want to say, I guess you are trying to increase the points each time the event finishes.
nPoints = nPoints + @nPoints,
nKills = nKills + @  lls, nDeaths = nDeaths + @  s
|
|
|
04/05/2016, 22:35
|
#5
|
elite*gold: 0
Join Date: May 2011
Posts: 244
Received Thanks: 12
|
Quote:
Originally Posted by alfredico
After reading over 10 times trying to figure out what you want to say, I guess you are trying to increase the points each time the event finishes.
nPoints = nPoints + @nPoints,
nKills = nKills + @  lls,
nDeaths = nDeaths + @  s
|
Thanks sir ^^ 
|
|
|
 |
Similar Threads
|
[C#] C# connect to a SQL Database and save songnames from a listbox. [GER & Bad Engl]
04/07/2015 - .NET Languages - 3 Replies
For the Englisch Question, please scroll down and sorry for my bad english :D |
------------------------------------------------- -------------------------------------------------- ---------------
Moin leute,
ich bin derzeit dabei Programmieren zu lernen und bin noch ziemlich weit am anfang. Jedenfalls habe ich eine listbox, welche von einem radio sender die song namen von der webseite abgreift. Der titel wird in der listbox angezeigt und alle 60sekunden aktuallisiert ob ein neuer titel...
|
Kill & Save Spiel
01/14/2015 - Anime & Manga - 18 Replies
Kill & Save
Hall of Fame:
Hall of Shame:
Regeln:
|
How Make a Quest and Save it in my Database
10/06/2014 - CO2 Private Server - 2 Replies
Hello friends, i have a doubt, i want to know how save my quest on my Database, example when a user/player end the quest, the npc recognize and do do this again...
I do that, i take some code from: "SourceOpenConquer", called "QuestDaily", and then in the DataBase i make a table called: "QuestDailys.cs", inside the table i do the same like in VisualBasic: "questdaily1, 2, etc", something like this:
http://i.epvpimg.com/QeTPg.png
But i need to do that: "Set=Save" into the DataBase and...
|
[Help] Database Wont Save Password
10/02/2008 - CO2 Private Server - 3 Replies
help i got a problem my database wont save password.... so even if they create an acc.... they can log in with any random password at anytime? any way to solve this problem?
|
All times are GMT +1. The time now is 08:04.
|
|