AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [INC] Hcs (https://forums.alliedmods.net/showthread.php?t=221198)

LordOfNothing 07-19-2013 04:57

[INC] Hcs
 
Hy i made a new include and i have a problem , dont work to compile new plugins wich use <Hcs>
LOOK :


Core :
PHP Code:

#include < amxmodx >
#include < cstrike >
#include < fun >

public plugin_natives( )
{    
        
register_library("hcs"
     
    
register_native"hcs_money""hcsMoney");
    
register_native"hcs_health""hcsHealth");
    
register_native"hcs_frags""hcsFrags");
    
register_native"hcs_deaths""hcsFrags");


}
public 
hcsMoneyidmoney )
{
    
cs_set_user_moneyidcs_get_user_moneyid ) + money );
}
public 
hcsHealthidhealth )
{
    
set_user_healthidget_user_healthid ) + health );
}
public 
hcsFragsidfrags )
{
    
set_user_fragsidget_user_fragsid ) + frags );
}
public 
hcsDeathsiddeaths )
{
    
cs_set_user_deathsidget_user_deathsid ) + deaths );





INC :
PHP Code:

#pragma library <hcs>

native hcs_money(id)
native hcs_health(id)
native hcs_frags(id)
native hcs_deaths(id


The Plugin hwo dont work to compile :

PHP Code:

#include < amxmodx >
#include < hcs >

public plugin_init( )
{    
register_plugin("dawdwad","1.0","dede")
register_clcmd("say /money","xMoney")
register_clcmd("say /hp","xHp")
register_clcmd("say /frags","xFrags")
register_clcmd("say /deaths","xDeaths")
}
public 
xMoney(id)
{
  
hcs_money(id500)    
}
public 
xHp(id)
{
  
hcs_health(id1000)    
}

public 
xFrags(id)
{
  
hcs_frags(id100)    
}
public 
xDeaths(id)
{
  
hcs_deaths(id0)    



Im not shourt but i think the problem it's on the hcs.inc file :(

HELP ME PLEASE :D

K1d0x 07-19-2013 05:30

Re: [INC] Hcs
 
Inc.
PHP Code:

#pragma library hcs

native hcs_money(idmoney)
native hcs_health(idhealth)
native hcs_frags(idfrags)
native hcs_deaths(iddeaths


LordOfNothing 07-19-2013 05:40

Re: [INC] Hcs
 
Thank works !!! , but is to late he help my puMf :X


All times are GMT -4. The time now is 06:30.

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