Raised This Month: $ Target: $400
 0% 

[Help] Log errors


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Plc0tad0
New Member
Join Date: May 2012
Old 05-07-2012 , 06:50   [Help] Log errors
Reply With Quote #1

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

public plugin_init()
{
    
register_plugin("VIPAdd""1.0""Plc0tad0")
    
    
RegisterHam(Ham_Spawn"player""HamPlayerSpawn"1)
}

public 
HamPlayerSpawn(id)
{
    if(
get_user_flags(id) & ADMIN_RESERVATION)
    {
        
strip_user_weapons(id)
        
give_item(id"weapon_knife")
        
give_item(id"weapon_m3")
        
give_item(id"weapon_deagle")
        
give_item(id"weapon_hegrenade")
        
give_item(id"weapon_flashbang")
        
give_item(id"weapon_flashbang")
        
give_item(id"weapon_smokegrenade")
        
cs_set_user_bpammo(idCSW_DEAGLE35)
        
cs_set_user_bpammo(idCSW_M332)
        
set_user_health(id200)
        
set_user_armor(id200)
    }

I'm new in programming so i am still learning. Works, but i get this log error. Whats happened?
Bad english

Code:
L 05/07/2012 - 10:33:19: Start of error session.
L 05/07/2012 - 10:33:19: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20120507.log")
L 05/07/2012 - 10:33:19: [FUN] Invalid player 1
L 05/07/2012 - 10:33:19: [AMXX] Displaying debug trace (plugin "vipadd.amxx")
L 05/07/2012 - 10:33:19: [AMXX] Run time error 10: native error (native "strip_user_weapons")
L 05/07/2012 - 10:33:19: [AMXX]    [0] vipadd.sma::HamPlayerSpawn (line 17)

Last edited by Plc0tad0; 05-07-2012 at 07:32.
Plc0tad0 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 00:28.


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