mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-30 16:55:37 +03:00
30 lines
713 B
SourcePawn
30 lines
713 B
SourcePawn
// vim: set ts=4 sw=4 tw=99 noet:
|
|
//
|
|
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
|
|
// Copyright (C) The AMX Mod X Development Team.
|
|
//
|
|
// This software is licensed under the GNU General Public License, version 3 or higher.
|
|
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
|
|
// https://alliedmods.net/amxmodx-license
|
|
|
|
#include <amxmodx>
|
|
#include <nvault>
|
|
|
|
public plugin_init()
|
|
{
|
|
register_plugin("nVault Test", "1.0", "BAILOPAN")
|
|
|
|
register_srvcmd("test_nvault", "Command_TestNvault")
|
|
}
|
|
|
|
public Command_TestNvault()
|
|
{
|
|
new v = nvault_open("://:/1/R!?#@41345$%:$")
|
|
server_print("Vault value: %d (expected: %d)", v, -1)
|
|
|
|
if (v != -1)
|
|
{
|
|
nvault_close(v)
|
|
}
|
|
}
|