Raised This Month: $ Target: $400
 0% 

Stop saving data at mapchange


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CS-A-Roland
Member
Join Date: Jul 2009
Old 08-12-2012 , 15:43   Stop saving data at mapchange
Reply With Quote #1

still exist but my tests wont work! What can i do?!

Code:
public plugin_end()
{
    new szCurMap[32];
    get_mapname( szCurMap, 31 );
    log_amx( "** Map '%s' ended", szCurMap );
    
    if ( !WOW_Check() )
    {
        return;
    }
    
    // Destry the forward
    //FWD_Destroy()

    if ( !get_cvar_num("mp_savexp") )
    {
        return;
    }
    
    // Close the connections
    //Save_Close();
    
    return;
} 

public bool:WOW_Check()
{
    if ( get_cvar_num("sv_wowmod_enabled") == 1 )
    {
        return true;
    }
    
    return false;
}
its a uwc3 based code snipped and ive compared also with the wc3ft, but something misses i think or there ive to write something in a differend way. He sould set the plugin to false and stop saving data or am i wrong?! The map endet print comes but the server still crashing at the mapchange...
how can i handle it?!
Also a question where i get these functions from:
Quote:
// Destry the forward
FWD_Destroy()
// Close the connections
Save_Close();
Or at wc3ft its:
Quote:
FWD_Destroy();
DB_Prune();
DB_Close();
seen it in no other file and my compiler everytime give just errors for these lines! :-/
__________________
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

Last edited by CS-A-Roland; 08-12-2012 at 15:47.
CS-A-Roland is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-12-2012 , 18:07   Re: Stop saving data at mapchange
Reply With Quote #2

Quote:
Originally Posted by CS-A-Roland View Post
Also a question where i get these functions from:

Or at wc3ft its:


seen it in no other file and my compiler everytime give just errors for these lines! :-/
None of these functions exist natively in AMX Mod X. So, find a plugin that uses them successfully and find them in that plugin.
__________________
fysiks is offline
CS-A-Roland
Member
Join Date: Jul 2009
Old 08-13-2012 , 08:07   Re: Stop saving data at mapchange
Reply With Quote #3

fysiks, both of them, wc3ft & uwc3, working fine with it! If they did not work I would not ask...
but thanks for the information that they are not natives, then a declaration must be exist in the sources
__________________
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
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-13-2012 , 08:13   Re: Stop saving data at mapchange
Reply With Quote #4

For wc3ft, check forwards.inl and db/db_common.inl
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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:47.


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