Raised This Month: $ Target: $400
 0% 

delede save XP before mapchange


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CS-A-Roland
Member
Join Date: Jul 2009
Old 08-09-2012 , 07:14   delede save XP before mapchange
Reply With Quote #1

Hey guys,

i got a new problem with an script wich saves XP into a SQL Database, it works all the time fine but at the mapchange it will save the XP of all the players to a database and this crash the server every time if there players on the server.
If i change the map with amxmodx manually, there nothing happens! And he save the xp on Kill, defuse and so on fine. So how can i find out in my script that he saves the xp before the map changes?!

What i have to search in my script? (its little bigger so this is the reason for my question)
I hope some of you know some commands wich do it, so i could search for them and find out when he saves the information and can delede it to check if it helps to make the server stable without this function, or i can check also "whats" the problem at the mapchange save xp function...

Thanks by the way!
__________________
oOOOoooh it's www.Cs-Attack.de
New World of Warcraft Mod Beta 0.5(based on WC3FT 3.5)
Counterstrike 1.6 SERVER:
Server IP: 193.192.58.154:27200

CONDITION ZERO SERVER:
Server IP: 193.192.58.154:27016
CS-A-Roland is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 08-14-2012 , 11:57   Re: delede save XP before mapchange
Reply With Quote #2

Quote:
Originally Posted by CS-A-Roland View Post
Hey guys,

i got a new problem with an script wich saves XP into a SQL Database, it works all the time fine but at the mapchange it will save the XP of all the players to a database and this crash the server every time if there players on the server.
If i change the map with amxmodx manually, there nothing happens! And he save the xp on Kill, defuse and so on fine. So how can i find out in my script that he saves the xp before the map changes?!

What i have to search in my script? (its little bigger so this is the reason for my question)
I hope some of you know some commands wich do it, so i could search for them and find out when he saves the information and can delede it to check if it helps to make the server stable without this function, or i can check also "whats" the problem at the mapchange save xp function...

Thanks by the way!
If the expierence is saved everytime you get some xp then it is indeed not necesary to save it again before mapchange.
Look for the public funtion that saves the exp, copy the public function name and press f3, search in you're script everywhere that function is called, if you find where the function is called whenever you dont get xp or any other reason why it should save then i'd just remove it.

thats what i would do but i'm guessing you already knew that.

I'm not sure if you can check if the server is gonna change the map, so maybe it's always being saved in event round end?
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]

Last edited by striker07; 08-14-2012 at 12:00.
striker07 is offline
CS-A-Roland
Member
Join Date: Jul 2009
Old 08-16-2012 , 09:23   Re: delede save XP before mapchange
Reply With Quote #3

Jep i knew that, and its not only the save function wich is broken, its also the load function what makes troubble at the mapchange. So ive more to do with it then check some functions and erase...
I have to finish the database changes and safety query before i can say more at this time, and it's realy hard for me atm because i dont underatand all the codes/functions, also extracting other codes and adapt for my need's in ths plugin... but its getting better with every day coding on it...

The check before the map changes workes fine, i see if he done it and i see if he dont... this is where i got the information from that the load function also is buggy, maybe the precache too... i will see
__________________
oOOOoooh it's www.Cs-Attack.de
New World of Warcraft Mod Beta 0.5(based on WC3FT 3.5)
Counterstrike 1.6 SERVER:
Server IP: 193.192.58.154:27200

CONDITION ZERO SERVER:
Server IP: 193.192.58.154:27016
CS-A-Roland is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 08-16-2012 , 10:26   Re: delede save XP before mapchange
Reply With Quote #4

Quote:
Originally Posted by CS-A-Roland View Post
The check before the map changes workes fine, i see if he done it and i see if he dont... this is where i got the information from that the load function also is buggy, maybe the precache too... i will see
maybe you got some incorrupt files that are being precached?
i've had that once but i could open the model without problems but when i check from weapon origin view then i saw the location of the model was off and therefore crashing the server
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]
striker07 is offline
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:46.


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