AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   delede save XP before mapchange (https://forums.alliedmods.net/showthread.php?t=192342)

CS-A-Roland 08-09-2012 07:14

delede save XP before mapchange
 
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!

striker07 08-14-2012 11:57

Re: delede save XP before mapchange
 
Quote:

Originally Posted by CS-A-Roland (Post 1767547)
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?

CS-A-Roland 08-16-2012 09:23

Re: delede save XP before mapchange
 
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... :wink:

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

striker07 08-16-2012 10:26

Re: delede save XP before mapchange
 
Quote:

Originally Posted by CS-A-Roland (Post 1772890)
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


All times are GMT -4. The time now is 05:46.

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