Raised This Month: $ Target: $400
 0% 

nVault


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BeasTeHbIw
Junior Member
Join Date: Oct 2013
Old 05-18-2014 , 21:48   nVault
Reply With Quote #1

Good afternoon.
Help fix the error and tell me whether written a plugin?

//// vote.sma
// D:\unstal\cs\Compiler 1.8.1\vote.sma(35) : error 088: number of argum
ents does not match definition
//
// 1 Error.
// Could not locate output file compiled\vote.amx (compile failed).
//
// Compilation Time: 0,09 sec
// ----------------------------------------

Code:
#include <amxmodx> #include <nvault> #include <cstrike> #include <fun> new g_Hskill[33] new g_Vault   public plugin_init() {         register_event("DeathMsg", "hook_death", "a")         }     public plugin_cfg() {     g_Vault = nvault_open("hsvault")     if (g_Vault == INVALID_HANDLE)         set_fail_state("Error opening nVault!") } public plugin_end() {     nvault_close(g_Vault) } public hook_death() {         new nKiller = read_data(1)         new victim = read_data(2);         if ( (read_data(3) == 1) && (read_data(5) == 0) )         {     g_Hskill[nKiller]++     nvault_set(g_Vault, (g_Hskill[nKiller]))         } }   public chek_hs(id) {     nvault_get(g_Vault,g_Hskill[id])         set_hudmessage(0, 255, 0, -1.0, 0.86, 0, 6.0, 2.0)         show_hudmessage(id, "У вас %s хедшетов", g_Hskill[id]) }
BeasTeHbIw is offline
r0ck
Senior Member
Join Date: Jun 2011
Location: India
Old 05-19-2014 , 01:21   Re: nVault
Reply With Quote #2

Try this ?

PHP Code:
#include <amxmodx> 
#include <nvault> 
#include <cstrike> 
#include <fun> 

new g_Hskill[33
new 
g_Vault 
new g_szAuthID[33][35]

public 
plugin_init()
{
    
register_event("DeathMsg""hook_death""a")

    
register_clcmd("say /hskill""chek_hs")
    
    
g_Vault nvault_open("hsvault")
    if (
g_Vault == INVALID_HANDLE)
        
set_fail_state("Error opening nVault!")

public 
client_authorized(id)
{
    
get_user_authid(idg_szAuthID[id], charsmax(g_szAuthID[]))
    
LoadData(id)
}
public 
plugin_end()
{
    
nvault_close(g_Vault)
}
public 
hook_death()
{
    new 
nKiller read_data(1)
    
//new victim = read_data(2)
    
if((read_data(3) == 1) && (read_data(5) == 0))
    {
        
g_Hskill[nKiller]++
        
nvault_set(g_Vaultg_szAuthID[nKiller], g_Hskill[nKiller])
    }
}
public 
chek_hs(id)
{
    
set_hudmessage(02550, -1.00.8606.02.0)
    
show_hudmessage(id"У вас %s хедшетов"g_Hskill[id])
}

public 
LoadData(id)
{
    
nvault_get(g_Vaultg_szAuthID[id], g_Hskill[id])

__________________
Preparing to release my plugins..
r0ck is offline
BeasTeHbIw
Junior Member
Join Date: Oct 2013
Old 05-19-2014 , 01:42   Re: nVault
Reply With Quote #3

Change map, headshots reset
BeasTeHbIw is offline
swapped
BANNED
Join Date: Mar 2014
Location: OrpheuRegisterHook
Old 05-19-2014 , 02:24   Re: nVault
Reply With Quote #4

Quote:
Originally Posted by BeasTeHbIw View Post
Change map, headshots reset
NON steam ?
swapped is offline
BeasTeHbIw
Junior Member
Join Date: Oct 2013
Old 05-19-2014 , 02:26   Re: nVault
Reply With Quote #5

Quote:
Originally Posted by r0ck View Post
Try this ?

PHP Code:
#include <amxmodx> 
#include <nvault> 
#include <cstrike> 
#include <fun> 

new g_Hskill[33
new 
g_Vault 
new g_szAuthID[33][35]

public 
plugin_init()
{
    
register_event("DeathMsg""hook_death""a")

    
register_clcmd("say /hskill""chek_hs")
    
    
g_Vault nvault_open("hsvault")
    if (
g_Vault == INVALID_HANDLE)
        
set_fail_state("Error opening nVault!")

public 
client_authorized(id)
{
    
get_user_authid(idg_szAuthID[id], charsmax(g_szAuthID[]))
    
LoadData(id)
}
public 
plugin_end()
{
    
nvault_close(g_Vault)
}
public 
hook_death()
{
    new 
nKiller read_data(1)
    
//new victim = read_data(2)
    
if((read_data(3) == 1) && (read_data(5) == 0))
    {
        
g_Hskill[nKiller]++
        
nvault_set(g_Vaultg_szAuthID[nKiller], g_Hskill[nKiller])
    }
}
public 
chek_hs(id)
{
    
set_hudmessage(02550, -1.00.8606.02.0)
    
show_hudmessage(id"У вас %s хедшетов"g_Hskill[id])
}

public 
LoadData(id)
{
    
nvault_get(g_Vaultg_szAuthID[id], g_Hskill[id])

Quote:
Originally Posted by swapped View Post
NON steam ?
yes
BeasTeHbIw is offline
r0ck
Senior Member
Join Date: Jun 2011
Location: India
Old 05-19-2014 , 04:25   Re: nVault
Reply With Quote #6

Quote:
Originally Posted by BeasTeHbIw View Post
yes
Non steam = No support and don't ask anything related to nonsteam here
__________________
Preparing to release my plugins..
r0ck is offline
Reply


Thread Tools
Display Modes

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 09:45.


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