Raised This Month: $ Target: $400
 0% 

Function fwHamPlayerSpawnPost not found.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
alien100
Member
Join Date: May 2010
Location: Finland
Old 06-05-2011 , 12:58   Function fwHamPlayerSpawnPost not found.
#1

I have error in my log
HTML Code:
L 06/05/2011 - 19:38:31: [HAMSANDWICH] Function fwHamPlayerSpawnPost not found.
L 06/05/2011 - 19:38:31: [AMXX] Displaying debug trace (plugin "vip.amxx")
L 06/05/2011 - 19:38:31: [AMXX] Run time error 10: native error (native "RegisterHam")
L 06/05/2011 - 19:38:31: [AMXX]    [0] vip.sma::plugin_init (line 19)
Plugin
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <hamsandwich>
#include <cstrike>

static const COLOR[] = "^x04" //green
new maxplayers
new gmsgSayText

#define PLUGIN "Furien VIP"
#define VERSION "1.0"
#define AUTHOR "sMog"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn"player""fwHamPlayerSpawnPost"1); 
}

public 
FwdHamPlayerSpawnPost(id)
{
    if(
get_user_flags(id) & ADMIN_LEVEL_H && is_user_alive(id))
    {
        
set_user_healthidget_user_health(id) + 15);    
        
        switch(
cs_get_user_team(id))
        {
            case 
CS_TEAM_T:
            {
           
give_item(id"weapon_hegrenade")
           
cs_set_user_bpammo(idCSW_HEGRENADE2)
        
           
give_item(id"weapon_flashbang")
           
cs_set_user_bpammo(idCSW_FLASHBANG2)
           
           
give_item(id"weapon_smokegrenade")
           
cs_set_user_bpammo(idCSW_FLASHBANG2)
           
            }
            
            case 
CS_TEAM_CT:
            {
           
give_item(id"weapon_hegrenade")
           
cs_set_user_bpammo(idCSW_HEGRENADE1)
        
           
give_item(id"weapon_flashbang")
           
cs_set_user_bpammo(idCSW_FLASHBANG1)
                   
           
give_item(id"weapon_smokegrenade")
           
cs_set_user_bpammo(idCSW_FLASHBANG1)
           
           
give_item(id"weapon_elite")
           
cs_set_user_bpammo(idCSW_ELITE100)
            }
        }
    }


public 
print_adminlist(user
{
    new 
adminnames[33][32]
    new 
message[256]
    new 
contactinfo[256], contact[112]
    new 
idcountxlen
    
    
for(id id <= maxplayers id++)
        if(
is_user_connected(id))
            if(
get_user_flags(id) & ADMIN_LEVEL_H)
                
get_user_name(idadminnames[count++], 31)

    
len format(message255"%s VIP ONLINE: ",COLOR)
    if(
count 0) {
        for(
count x++) {
            
len += format(message[len], 255-len"%s%s "adminnames[x], < (count-1) ? ", ":"")
            if(
len 96 ) {
                
print_message(usermessage)
                
len format(message255"%s ",COLOR)
            }
        }
        
print_message(usermessage)
    }
    else {
        
len += format(message[len], 255-len"No VIP online.")
        
print_message(usermessage)
    }
    
    
get_cvar_string("amx_contactinfo"contact63)
    if(
contact[0])  {
        
format(contactinfo111"%s Contact Server Admin -- %s"COLORcontact)
        
print_message(usercontactinfo)
    }
}

print_message(idmsg[]) {
    
message_begin(MSG_ONEgmsgSayText, {0,0,0}, id)
    
write_byte(id)
    
write_string(msg)
    
message_end()

Can someone fix it ?
__________________
alien100 is offline
Send a message via MSN to alien100 Send a message via Skype™ to alien100
 



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 21:38.


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