Raised This Month: $ Target: $400
 0% 

[INC] Hcs


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
LordOfNothing
BANNED
Join Date: Jul 2013
Old 07-19-2013 , 04:57   [INC] Hcs
Reply With Quote #1

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
LordOfNothing is offline
 



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 06:29.


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