AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Stop saving data at mapchange (https://forums.alliedmods.net/showthread.php?t=192644)

CS-A-Roland 08-12-2012 15:43

Stop saving data at mapchange
 
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! :-/

fysiks 08-12-2012 18:07

Re: Stop saving data at mapchange
 
Quote:

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

CS-A-Roland 08-13-2012 08:07

Re: Stop saving data at mapchange
 
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

YamiKaitou 08-13-2012 08:13

Re: Stop saving data at mapchange
 
For wc3ft, check forwards.inl and db/db_common.inl


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

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